Skip to content

Commit 9093590

Browse files
authored
Re-export TypeForm from typing on Python 3.15 (#16465)
1 parent f352809 commit 9093590

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎stdlib/typing_extensions.pyi‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,10 @@ class _NoExtraItemsType: ...
650650
NoExtraItems: _NoExtraItemsType
651651

652652
# PEP 747
653-
TypeForm: _SpecialForm
653+
if sys.version_info >= (3, 15):
654+
from typing import TypeForm as TypeForm
655+
else:
656+
TypeForm: _SpecialForm
654657

655658
# PEP 649/749
656659
if sys.version_info >= (3, 14):

0 commit comments

Comments
 (0)