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

@@ -591,7 +591,8 @@ if sys.version_info >= (3, 9):
@property
def __typing_unpacked_tuple_args__(self) -> tuple[Any, ...] | None: ...
def __getattr__(self, name: str) -> Any: ... # incomplete
# GenericAlias delegates attr access to `__origin__`
def __getattr__(self, name: str) -> Any: ...
if sys.version_info >= (3, 10):
@final