From c336b46f9d3d4fc53abd07efd3364107f8d1a38d Mon Sep 17 00:00:00 2001 From: DetachHead <57028336+DetachHead@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:59:21 +1000 Subject: [PATCH] update comments about `TypeForm` since it has been deferred to python 3.15 see https://peps.python.org/pep-0747/ --- src/typing_extensions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typing_extensions.py b/src/typing_extensions.py index 03b72e3b..ca1705e4 100644 --- a/src/typing_extensions.py +++ b/src/typing_extensions.py @@ -2291,10 +2291,10 @@ def f(val: Union[int, Awaitable[int]]) -> int: return typing._GenericAlias(self, (item,)) -# 3.14+? +# 3.15+? if hasattr(typing, 'TypeForm'): TypeForm = typing.TypeForm -# <=3.13 +# <=3.14 else: class _TypeFormForm(_ExtensionsSpecialForm, _root=True): # TypeForm(X) is equivalent to X but indicates to the type checker