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 7cf443e commit 217be66Copy full SHA for 217be66
stdlib/_typeshed/__init__.pyi
@@ -65,10 +65,10 @@ MaybeNone: TypeAlias = Any # stable
65
# In cases where the sentinel object is exported and can be used by user code,
66
# a construct like this is better:
67
#
68
-# _SentinelType = NewType("_SentinelType", object)
69
-# sentinel: _SentinelType
+# _SentinelType = NewType("_SentinelType", object) # does not exist at runtime
+# sentinel: Final[_SentinelType]
70
# def foo(x: int | None | _SentinelType = ...) -> None: ...
71
-sentinel: Any
+sentinel: Any # stable
72
73
# stable
74
class IdentityFunction(Protocol):
0 commit comments