We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UnionType.__getitem__
1 parent 6ee36ba commit 2b36c45Copy full SHA for 2b36c45
stdlib/types.pyi
@@ -733,7 +733,7 @@ if sys.version_info >= (3, 10):
733
def __hash__(self) -> int: ...
734
# you can only subscript a `UnionType` instance if at least one of the elements
735
# in the union is a generic alias instance that has a non-empty `__parameters__`
736
- def __getitem__(self, parameters: Any) -> object: ...
+ def __getitem__(self, parameters: Any, /) -> object: ...
737
738
if sys.version_info >= (3, 13):
739
@final
0 commit comments