Skip to content

Commit 5ba2e49

Browse files
authored
Add types.UnionType.__parameters__ (#13628)
annotate the `types.UnionType.__parameters__` property
1 parent cdfb10c commit 5ba2e49

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

stdlib/types.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,8 @@ if sys.version_info >= (3, 10):
687687
class UnionType:
688688
@property
689689
def __args__(self) -> tuple[Any, ...]: ...
690+
@property
691+
def __parameters__(self) -> tuple[Any, ...]: ...
690692
def __or__(self, value: Any, /) -> UnionType: ...
691693
def __ror__(self, value: Any, /) -> UnionType: ...
692694
def __eq__(self, value: object, /) -> bool: ...

0 commit comments

Comments
 (0)