Skip to content

Commit f57be7b

Browse files
gh-136021: Remove dead code for internal sentinel in typing (#138120)
Remove dead code for internal sentinel
1 parent 96b7a2e commit f57be7b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Lib/typing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,6 @@ def _deprecation_warning_for_no_type_params_passed(funcname: str) -> None:
453453
warnings.warn(depr_message, category=DeprecationWarning, stacklevel=3)
454454

455455

456-
class _Sentinel:
457-
__slots__ = ()
458-
def __repr__(self):
459-
return '<sentinel>'
460-
461-
462456
def _eval_type(t, globalns, localns, type_params, *, recursive_guard=frozenset(),
463457
format=None, owner=None, parent_fwdref=None):
464458
"""Evaluate all forward references in the given type t.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy