From 1857f7c60f4808bc1c83023175ae6e9b5a30f250 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 25 Jun 2026 12:32:54 +0100 Subject: [PATCH] Make `typing_extensions.TypedDict` a distinct symbol to `typing.TypedDict` --- stdlib/typing_extensions.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/typing_extensions.pyi b/stdlib/typing_extensions.pyi index 8f8ec0cfc8e0..0f6e19cb9f6a 100644 --- a/stdlib/typing_extensions.pyi +++ b/stdlib/typing_extensions.pyi @@ -59,7 +59,6 @@ from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035 Tuple as Tuple, Type as Type, TypeAlias as TypeAlias, - TypedDict as TypedDict, TypeGuard as TypeGuard, TypeVar as _TypeVar, Union as Union, @@ -233,6 +232,8 @@ Literal: _SpecialForm def IntVar(name: str) -> Any: ... # returns a new TypeVar +TypedDict: _SpecialForm + # Internal mypy fallback type for all typed dicts (does not exist at runtime) # N.B. Keep this mostly in sync with typing._TypedDict/mypy_extensions._TypedDict @type_check_only