]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136021: Remove dead code for internal sentinel in `typing` (#138120)
authorBrian Schubert <brianm.schubert@gmail.com>
Sun, 24 Aug 2025 20:36:35 +0000 (16:36 -0400)
committerGitHub <noreply@github.com>
Sun, 24 Aug 2025 20:36:35 +0000 (20:36 +0000)
Remove dead code for internal sentinel

Lib/typing.py

index 8c1d265019bb94c7b45ab0099617ce2b75813e09..ea25e3832bd0bed6de3d2f8065757ee1983857ee 100644 (file)
@@ -453,12 +453,6 @@ def _deprecation_warning_for_no_type_params_passed(funcname: str) -> None:
     warnings.warn(depr_message, category=DeprecationWarning, stacklevel=3)
 
 
-class _Sentinel:
-    __slots__ = ()
-    def __repr__(self):
-        return '<sentinel>'
-
-
 def _eval_type(t, globalns, localns, type_params, *, recursive_guard=frozenset(),
                format=None, owner=None, parent_fwdref=None):
     """Evaluate all forward references in the given type t.