Use Incomplete instead of Any in __getattr__ (#8903)

This commit is contained in:
Nikita Sobolev
2022-10-15 20:54:21 +03:00
committed by GitHub
parent ed4bc2b2e6
commit ce4668a132
64 changed files with 157 additions and 132 deletions

View File

@@ -1,3 +1,3 @@
from typing import Any
from _typeshed import Incomplete
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...

View File

@@ -1,6 +1,7 @@
from _typeshed import Incomplete
from typing import Any
def default_backend() -> Any: ...
# TODO: add some backends
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...

View File

@@ -1,3 +1,3 @@
from typing import Any
from _typeshed import Incomplete
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...

View File

@@ -1,3 +1,3 @@
from typing import Any
from _typeshed import Incomplete
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...

View File

@@ -1,5 +1,5 @@
import datetime
from _typeshed import Self
from _typeshed import Incomplete, Self
from abc import ABCMeta, abstractmethod
from collections.abc import Generator, Iterable, Sequence
from enum import Enum
@@ -477,4 +477,4 @@ def load_der_x509_crl(data: bytes, backend: X509Backend | None = ...) -> Certifi
def load_pem_x509_crl(data: bytes, backend: X509Backend | None = ...) -> CertificateRevocationList: ...
def load_der_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ...
def load_pem_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ...
def __getattr__(name: str) -> Any: ... # incomplete
def __getattr__(name: str) -> Incomplete: ...