Skip to content

Commit 442d848

Browse files
DaraanAlexWaygood
andauthored
Remove no_type_check_decorator from _typing_names (#723)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 2f9df17 commit 442d848

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/typing_extensions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,11 +4298,16 @@ 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+
4306+
# Breakpoint: https://github.com/python/cpython/pull/133602
4307+
if sys.version_info < (3, 15, 0):
4308+
_typing_names.append("no_type_check_decorator")
4309+
__all__.append("no_type_check_decorator")
4310+
43064311
globals().update(
43074312
{name: getattr(typing, name) for name in _typing_names if hasattr(typing, name)}
43084313
)
@@ -4311,7 +4316,3 @@ def type_repr(value):
43114316
Generic = typing.Generic
43124317
ForwardRef = typing.ForwardRef
43134318
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)