gh-136021: Remove dead code for internal sentinel in typing (#138120)

Remove dead code for internal sentinel
This commit is contained in:
Brian Schubert 2025-08-24 16:36:35 -04:00 committed by GitHub
parent 96b7a2eba4
commit f57be7b2b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.