You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main:1: error: Cannot find implementation or library stub for module named 'xyz'
313
313
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
314
314
main:2: error: Name 'y' is not defined
315
315
@@ -318,14 +318,14 @@ from xyz import y as z
318
318
y
319
319
z
320
320
[out]
321
-
main:1: error: Cannot find module named 'xyz'
321
+
main:1: error: Cannot find implementation or library stub for module named 'xyz'
322
322
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
323
323
main:2: error: Name 'y' is not defined
324
324
325
325
[case testUnknownModuleRedefinition]
326
326
# Error messages differ with the new analyzer
327
327
328
-
import xab # E: Cannot find module named 'xab' # N: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
328
+
import xab # E: Cannot find implementation or library stub for module named 'xab' # N: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
329
329
def xab(): pass # E: Name 'xab' already defined (possibly by an import)
330
330
331
331
[case testAccessingUnknownModuleFromOtherModule]
@@ -336,7 +336,7 @@ x.z
336
336
import nonexistent
337
337
[builtins fixtures/module.pyi]
338
338
[out]
339
-
tmp/x.py:1: error: Cannot find module named 'nonexistent'
339
+
tmp/x.py:1: error: Cannot find implementation or library stub for module named 'nonexistent'
340
340
tmp/x.py:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
341
341
main:3: error: Module has no attribute "z"
342
342
@@ -346,7 +346,7 @@ def f():
346
346
def foobar(): pass
347
347
foobar('')
348
348
[out]
349
-
main:2: error: Cannot find module named 'foobar'
349
+
main:2: error: Cannot find implementation or library stub for module named 'foobar'
350
350
main:2: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
351
351
main:4: error: Too many arguments for "foobar"
352
352
@@ -356,7 +356,7 @@ def f():
356
356
def x(): pass
357
357
x('')
358
358
[out]
359
-
main:2: error: Cannot find module named 'foobar'
359
+
main:2: error: Cannot find implementation or library stub for module named 'foobar'
360
360
main:2: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
361
361
main:4: error: Too many arguments for "x"
362
362
@@ -2177,8 +2177,8 @@ import c
2177
2177
2178
2178
[out]
2179
2179
-- TODO: it would be better for this to be in the other order
2180
-
tmp/b.py:1: error: Cannot find module named 'c'
2181
-
main:1: error: Cannot find module named 'c'
2180
+
tmp/b.py:1: error: Cannot find implementation or library stub for module named 'c'
2181
+
main:1: error: Cannot find implementation or library stub for module named 'c'
2182
2182
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
2183
2183
2184
2184
[case testIndirectFromImportWithinCycle1]
@@ -2312,7 +2312,7 @@ from typing import Any
2312
2312
def __getattr__(attr: str) -> Any: ...
2313
2313
[builtins fixtures/module.pyi]
2314
2314
[out]
2315
-
main:1: error: Cannot find module named 'a.b'
2315
+
main:1: error: Cannot find implementation or library stub for module named 'a.b'
2316
2316
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
main:1: error: Cannot find implementation or library stub for module named 'a.b.c.d'
2361
2361
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
2362
-
main:1: error: Cannot find module named 'a.b.c'
2362
+
main:1: error: Cannot find implementation or library stub for module named 'a.b.c'
2363
2363
2364
2364
[case testModuleGetattrInit8a]
2365
-
import a.b.c # E: Cannot find module named 'a.b.c' # N: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
2365
+
import a.b.c # E: Cannot find implementation or library stub for module named 'a.b.c' # N: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
0 commit comments