Skip to content

Commit 9a2c4bc

Browse files
committed
Remove no_type_check_decorator from _typing_names
1 parent a7610ef commit 9a2c4bc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/typing_extensions.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,11 +4298,14 @@ def type_repr(value):
42984298
"ValuesView",
42994299
"cast",
43004300
"no_type_check",
4301-
"no_type_check_decorator",
43024301
# This is private, but it was defined by typing_extensions for a long time
43034302
# and some users rely on it.
43044303
"_AnnotatedAlias",
43054304
]
4305+
# Breakpoint: https://github.com/python/cpython/pull/133602
4306+
if sys.version_info < (3, 15, 0):
4307+
_typing_names.append("no_type_check_decorator")
4308+
__all__.append("no_type_check_decorator")
43064309
globals().update(
43074310
{name: getattr(typing, name) for name in _typing_names if hasattr(typing, name)}
43084311
)
@@ -4311,7 +4314,3 @@ def type_repr(value):
43114314
Generic = typing.Generic
43124315
ForwardRef = typing.ForwardRef
43134316
Annotated = typing.Annotated
4314-
4315-
# Breakpoint: https://github.com/python/cpython/pull/133602
4316-
if sys.version_info < (3, 15, 0):
4317-
__all__.append("no_type_check_decorator")

0 commit comments

Comments
 (0)