Add types.UnionType.__parameters__ (#13628)

annotate the `types.UnionType.__parameters__` property
This commit is contained in:
Joren Hammudoglu
2025-03-15 18:51:36 +01:00
committed by GitHub
parent cdfb10c340
commit 5ba2e4989e
+2
View File
@@ -687,6 +687,8 @@ if sys.version_info >= (3, 10):
class UnionType:
@property
def __args__(self) -> tuple[Any, ...]: ...
@property
def __parameters__(self) -> tuple[Any, ...]: ...
def __or__(self, value: Any, /) -> UnionType: ...
def __ror__(self, value: Any, /) -> UnionType: ...
def __eq__(self, value: object, /) -> bool: ...