mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-14 12:20:10 +08:00
types: add __getitem__ on GenericAlias (#9172)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
co-authored by
Jelle Zijlstra
parent
033d21e775
commit
39d37ec54c
@@ -585,6 +585,7 @@ if sys.version_info >= (3, 9):
|
||||
@property
|
||||
def __parameters__(self) -> tuple[Any, ...]: ...
|
||||
def __init__(self, origin: type, args: Any) -> None: ...
|
||||
def __getitem__(self, __typeargs: Any) -> GenericAlias: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
@property
|
||||
def __unpacked__(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user