Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4298,11 +4298,14 @@ def type_repr(value):
"ValuesView",
"cast",
"no_type_check",
"no_type_check_decorator",
# This is private, but it was defined by typing_extensions for a long time
# and some users rely on it.
"_AnnotatedAlias",
]
# Breakpoint: https://github.com/python/cpython/pull/133602
if sys.version_info < (3, 15, 0):
_typing_names.append("no_type_check_decorator")
__all__.append("no_type_check_decorator")
globals().update(
{name: getattr(typing, name) for name in _typing_names if hasattr(typing, name)}
)
Expand All @@ -4311,7 +4314,3 @@ def type_repr(value):
Generic = typing.Generic
ForwardRef = typing.ForwardRef
Annotated = typing.Annotated

# Breakpoint: https://github.com/python/cpython/pull/133602
if sys.version_info < (3, 15, 0):
__all__.append("no_type_check_decorator")
Loading