mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user