From: Brian Schubert Date: Sun, 24 Aug 2025 20:36:35 +0000 (-0400) Subject: gh-136021: Remove dead code for internal sentinel in `typing` (#138120) X-Git-Tag: v3.15.0a1~601 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f57be7b2b3dc61ed18c5cd98843c1dfbc83c424d;p=thirdparty%2FPython%2Fcpython.git gh-136021: Remove dead code for internal sentinel in `typing` (#138120) Remove dead code for internal sentinel --- diff --git a/Lib/typing.py b/Lib/typing.py index 8c1d265019bb..ea25e3832bd0 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 '' - - 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.