@@ -189,9 +189,9 @@ p.a.f(1)
189
189
[file p/a.py.2]
190
190
def f(x: str) -> None: pass
191
191
[out]
192
- main:1: error: Cannot find module named 'p'
193
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
194
192
main:1: error: Cannot find module named 'p.a'
193
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
194
+ main:1: error: Cannot find module named 'p'
195
195
==
196
196
main:2: error: Argument 1 to "f" has incompatible type "int"; expected "str"
197
197
@@ -215,9 +215,9 @@ p.a.f(1)
215
215
[file p/a.py.3]
216
216
def f(x: str) -> None: pass
217
217
[out]
218
- main:1: error: Cannot find module named 'p'
219
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
220
218
main:1: error: Cannot find module named 'p.a'
219
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
220
+ main:1: error: Cannot find module named 'p'
221
221
==
222
222
main:1: error: Cannot find module named 'p.a'
223
223
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
@@ -232,13 +232,13 @@ p.a.f(1)
232
232
def f(x: str) -> None: pass
233
233
[file p/__init__.py.3]
234
234
[out]
235
- main:1: error: Cannot find module named 'p'
236
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
237
235
main:1: error: Cannot find module named 'p.a'
238
- ==
239
- main:1: error: Cannot find module named 'p'
240
236
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
237
+ main:1: error: Cannot find module named 'p'
238
+ ==
241
239
main:1: error: Cannot find module named 'p.a'
240
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
241
+ main:1: error: Cannot find module named 'p'
242
242
==
243
243
main:2: error: Argument 1 to "f" has incompatible type "int"; expected "str"
244
244
@@ -266,13 +266,13 @@ p.a.f(1)
266
266
def f(x: str) -> None: pass
267
267
[file p/__init__.py.3]
268
268
[out]
269
- main:4: error: Cannot find module named 'p'
270
- main:4: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
271
269
main:4: error: Cannot find module named 'p.a'
272
- ==
273
- main:4: error: Cannot find module named 'p'
274
270
main:4: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
271
+ main:4: error: Cannot find module named 'p'
272
+ ==
275
273
main:4: error: Cannot find module named 'p.a'
274
+ main:4: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
275
+ main:4: error: Cannot find module named 'p'
276
276
==
277
277
main:5: error: Argument 1 to "f" has incompatible type "int"; expected "str"
278
278
@@ -839,9 +839,9 @@ def f(x: str) -> None: pass
839
839
[out]
840
840
main:2: error: Argument 1 to "f" has incompatible type "int"; expected "str"
841
841
==
842
- main:1: error: Cannot find module named 'p'
843
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
844
842
main:1: error: Cannot find module named 'p.a'
843
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
844
+ main:1: error: Cannot find module named 'p'
845
845
846
846
[case testDeletePackage2]
847
847
import p
@@ -873,9 +873,9 @@ main:2: error: Argument 1 to "f" has incompatible type "int"; expected "str"
873
873
main:1: error: Cannot find module named 'p.a'
874
874
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
875
875
==
876
- main:1: error: Cannot find module named 'p'
877
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
878
876
main:1: error: Cannot find module named 'p.a'
877
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
878
+ main:1: error: Cannot find module named 'p'
879
879
880
880
[case testDeletePackage4]
881
881
import p.a
@@ -888,13 +888,13 @@ def f(x: str) -> None: pass
888
888
[out]
889
889
main:2: error: Argument 1 to "f" has incompatible type "int"; expected "str"
890
890
==
891
- main:1: error: Cannot find module named 'p'
892
- main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
893
891
main:1: error: Cannot find module named 'p.a'
894
- ==
895
- main:1: error: Cannot find module named 'p'
896
892
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
893
+ main:1: error: Cannot find module named 'p'
894
+ ==
897
895
main:1: error: Cannot find module named 'p.a'
896
+ main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
897
+ main:1: error: Cannot find module named 'p'
898
898
899
899
[case testDeletePackage5]
900
900
# cmd1: mypy main p/a.py p/__init__.py
@@ -911,13 +911,13 @@ def f(x: str) -> None: pass
911
911
[out]
912
912
main:6: error: Argument 1 to "f" has incompatible type "int"; expected "str"
913
913
==
914
- main:5: error: Cannot find module named 'p'
915
- main:5: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
916
914
main:5: error: Cannot find module named 'p.a'
917
- ==
918
- main:5: error: Cannot find module named 'p'
919
915
main:5: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
916
+ main:5: error: Cannot find module named 'p'
917
+ ==
920
918
main:5: error: Cannot find module named 'p.a'
919
+ main:5: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
920
+ main:5: error: Cannot find module named 'p'
921
921
922
922
923
923
[case testDeletePackage6]
0 commit comments