Skip to content

Commit 0cf0218

Browse files
committed
Missed a few
1 parent 506a685 commit 0cf0218

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

test-data/unit/check-isinstance.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,8 +2087,7 @@ else:
20872087
[out]
20882088

20892089
[case testNarrowTypeAfterInTypedDict]
2090-
from typing import Optional
2091-
from mypy_extensions import TypedDict
2090+
from typing import Optional, TypedDict
20922091
class TD(TypedDict):
20932092
a: int
20942093
b: str
@@ -2099,8 +2098,8 @@ def f() -> None:
20992098
if x not in td:
21002099
return
21012100
reveal_type(x) # N: Revealed type is "builtins.str"
2102-
[typing fixtures/typing-typeddict.pyi]
21032101
[builtins fixtures/dict.pyi]
2102+
[typing fixtures/typing-typeddict.pyi]
21042103
[out]
21052104

21062105
[case testIsinstanceWidensWithAnyArg]

test-data/unit/check-literal.test

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

18901889
class Unrelated: pass
18911890
u: Unrelated
@@ -1924,8 +1923,7 @@ del d[c_key] # E: TypedDict "Outer" has no key "c"
19241923

19251924
[case testLiteralIntelligentIndexingUsingFinal]
19261925
from 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

19301928
int_key_good: Final = 0
19311929
int_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

19981995
class A: pass
19991996
class B: pass
@@ -2045,8 +2042,7 @@ del test[bad_keys] # E: Key "a" of TypedDict "Test" cannot be delet
20452042

20462043
[case testLiteralIntelligentIndexingMultiTypedDict]
20472044
from typing import Union
2048-
from typing_extensions import Literal
2049-
from mypy_extensions import TypedDict
2045+
from typing_extensions import Literal, TypedDict
20502046

20512047
class A: pass
20522048
class B: pass

0 commit comments

Comments
 (0)