Skip to content

Commit 299278b

Browse files
committed
Allowlist typing_extensions no_type_check_decorator export oddity
1 parent 8a42155 commit 299278b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ typing.TypeVar.__mro_entries__
398398
typing.TypeVarTuple.__mro_entries__
399399
typing.Union
400400
typing._SpecialForm.__mro_entries__
401+
typing_extensions.__all__
401402
typing_extensions.Protocol
402403
unicodedata.block
403404
unicodedata.extended_pictographic

stdlib/typing_extensions.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ _TC = _TypeVar("_TC", bound=type[object])
209209
_T_co = _TypeVar("_T_co", covariant=True) # Any type covariant containers.
210210
_T_contra = _TypeVar("_T_contra", contravariant=True)
211211

212-
def no_type_check_decorator(decorator: _F) -> _F: ...
212+
if sys.version_info < (3, 15):
213+
def no_type_check_decorator(decorator: _F) -> _F: ...
213214

214215
# Do not import (and re-export) Protocol or runtime_checkable from
215216
# typing module because type checkers need to be able to distinguish

0 commit comments

Comments
 (0)