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.
1 parent e7da3a6 commit dba2c53Copy full SHA for dba2c53
1 file changed
stdlib/typing_extensions.pyi
@@ -692,4 +692,7 @@ else:
692
) -> AnnotationForm: ...
693
694
# PEP 661
695
-Sentinel: _SpecialForm
+class Sentinel:
696
+ def __init__(self, name: str, repr: str | None = None) -> None: ...
697
+ def __or__(self, other: Any) -> UnionType: ... # other can be any type form legal for unions
698
+ def __ror__(self, other: Any) -> UnionType: ... # other can be any type form legal for unions
0 commit comments