Add GenericAlias.__(r)or__ (#12105)

This commit is contained in:
Max Muoto
2024-06-06 16:57:45 -04:00
committed by GitHub
parent b3fc7e2cec
commit 4da3572827

View File

@@ -591,6 +591,9 @@ if sys.version_info >= (3, 9):
def __unpacked__(self) -> bool: ...
@property
def __typing_unpacked_tuple_args__(self) -> tuple[Any, ...] | None: ...
if sys.version_info >= (3, 10):
def __or__(self, value: Any, /) -> UnionType: ...
def __ror__(self, value: Any, /) -> UnionType: ...
# GenericAlias delegates attr access to `__origin__`
def __getattr__(self, name: str) -> Any: ...