@@ -1884,8 +1884,7 @@ tup3: Tup2Class = tup2[:] # E: Incompatible types in assignment (expression
18841884[builtins fixtures/slice.pyi]
18851885
18861886[case testLiteralIntelligentIndexingTypedDict]
1887- from typing_extensions import Literal
1888- from mypy_extensions import TypedDict
1887+ from typing_extensions import Literal, TypedDict
18891888
18901889class Unrelated: pass
18911890u: Unrelated
@@ -1924,8 +1923,7 @@ del d[c_key] # E: TypedDict "Outer" has no key "c"
19241923
19251924[case testLiteralIntelligentIndexingUsingFinal]
19261925from typing import Tuple, NamedTuple
1927- from typing_extensions import Literal, Final
1928- from mypy_extensions import TypedDict
1926+ from typing_extensions import Literal, Final, TypedDict
19291927
19301928int_key_good: Final = 0
19311929int_key_bad: Final = 3
@@ -1992,8 +1990,7 @@ tup2[idx_bad] # E: Tuple index out of range
19921990[out]
19931991
19941992[case testLiteralIntelligentIndexingTypedDictUnions]
1995- from typing_extensions import Literal, Final
1996- from mypy_extensions import TypedDict
1993+ from typing_extensions import Literal, Final, TypedDict
19971994
19981995class A: pass
19991996class B: pass
@@ -2045,8 +2042,7 @@ del test[bad_keys] # E: Key "a" of TypedDict "Test" cannot be delet
20452042
20462043[case testLiteralIntelligentIndexingMultiTypedDict]
20472044from typing import Union
2048- from typing_extensions import Literal
2049- from mypy_extensions import TypedDict
2045+ from typing_extensions import Literal, TypedDict
20502046
20512047class A: pass
20522048class B: pass
0 commit comments