Skip to content

Commit ea4d0d3

Browse files
committed
Test without warning suppression
1 parent f68007e commit ea4d0d3

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/typing_extensions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,9 @@ def __reduce__(self) -> str:
448448
"""Reduce this sentinel to a singleton."""
449449
return self.__name__ # Module is taken from the __module__ attribute
450450

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
451+
@deprecated("""Sentinel was renamed to typing_extensions.sentinel""")
452+
class Sentinel(sentinel):
453+
pass
457454

458455
_marker = sentinel("sentinel")
459456

0 commit comments

Comments
 (0)