https://github.com/python/cpython/commit/f57be7b2b3dc61ed18c5cd98843c1dfbc83c424d
commit: f57be7b2b3dc61ed18c5cd98843c1dfbc83c424d
branch: main
author: Brian Schubert <[email protected]>
committer: AlexWaygood <[email protected]>
date: 2025-08-24T20:36:35Z
summary:
gh-136021: Remove dead code for internal sentinel in `typing` (#138120)
Remove dead code for internal sentinel
files:
M Lib/typing.py
diff --git a/Lib/typing.py b/Lib/typing.py
index 8c1d265019bb94..ea25e3832bd0be 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]