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 f68007e commit ea4d0d3Copy full SHA for ea4d0d3
1 file changed
src/typing_extensions.py
@@ -448,12 +448,9 @@ def __reduce__(self) -> str:
448
"""Reduce this sentinel to a singleton."""
449
return self.__name__ # Module is taken from the __module__ attribute
450
451
-with warnings.catch_warnings(): # Allow sentinel subclass for backwards compatibility
452
- warnings.simplefilter("ignore")
453
-
454
- @deprecated("""Sentinel was renamed to typing_extensions.sentinel""")
455
- class Sentinel(sentinel):
456
- pass
+@deprecated("""Sentinel was renamed to typing_extensions.sentinel""")
+class Sentinel(sentinel):
+ pass
457
458
_marker = sentinel("sentinel")
459
0 commit comments