@@ -449,7 +449,7 @@ y: Dict[int, int] = {1: ''} # E: Dict entry 0 has incompatible type "int": "str
449449[builtins fixtures/dict.pyi]
450450
451451[case testErrorCodeTypedDict]
452- from typing_extensions import TypedDict
452+ from typing import TypedDict
453453class D(TypedDict):
454454 x: int
455455class E(TypedDict):
@@ -472,7 +472,7 @@ a['y'] # E: TypedDict "D" has no key "y" [typeddict-item]
472472[typing fixtures/typing-typeddict.pyi]
473473
474474[case testErrorCodeTypedDictNoteIgnore]
475- from typing_extensions import TypedDict
475+ from typing import TypedDict
476476class A(TypedDict):
477477 one_commonpart: int
478478 two_commonparts: int
@@ -484,7 +484,7 @@ not_exist = a['not_exist'] # type: ignore[typeddict-item]
484484[typing fixtures/typing-typeddict.pyi]
485485
486486[case testErrorCodeTypedDictSubCodeIgnore]
487- from typing_extensions import TypedDict
487+ from typing import TypedDict
488488class D(TypedDict):
489489 x: int
490490d: D = {'x': 1, 'y': 2} # type: ignore[typeddict-item]
@@ -831,10 +831,11 @@ Foo = NamedTuple("Bar", []) # E: First argument to namedtuple() should be "Foo"
831831[builtins fixtures/tuple.pyi]
832832
833833[case testTypedDictNameMismatch]
834- from typing_extensions import TypedDict
834+ from typing import TypedDict
835835
836836Foo = TypedDict("Bar", {}) # E: First argument "Bar" to TypedDict() does not match variable name "Foo" [name-match]
837837[builtins fixtures/dict.pyi]
838+ [typing fixtures/typing-typeddict.pyi]
838839
839840[case testTruthyBool]
840841# flags: --enable-error-code truthy-bool --no-local-partial-types
@@ -993,7 +994,7 @@ reveal_type(t) # N: Revealed type is "__main__.TensorType"
993994[builtins fixtures/tuple.pyi]
994995
995996[case testNoteAboutChangedTypedDictErrorCode]
996- from typing_extensions import TypedDict
997+ from typing import TypedDict
997998class D(TypedDict):
998999 x: int
9991000
0 commit comments