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'
312
+
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 implementation or library stub for 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 implementation or library stub for 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 implementation or library stub for 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 implementation or library stub for 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 implementation or library stub for 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
@@ -2178,8 +2178,8 @@ import c
2178
2178
2179
2179
[out]
2180
2180
-- TODO: it would be better for this to be in the other order
2181
-
tmp/b.py:1: error: Cannot find implementation or library stub for module named 'c'
2182
-
main:1: error: Cannot find implementation or library stub for module named 'c'
2181
+
tmp/b.py:1: error: Cannot find implementation or library stub for module named "c"
2182
+
main:1: error: Cannot find implementation or library stub for module named "c"
2183
2183
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
2184
2184
2185
2185
[case testIndirectFromImportWithinCycle1]
@@ -2311,7 +2311,7 @@ from typing import Any
2311
2311
def __getattr__(attr: str) -> Any: ...
2312
2312
[builtins fixtures/module.pyi]
2313
2313
[out]
2314
-
main:1: error: Cannot find implementation or library stub for module named 'a.b'
2314
+
main:1: error: Cannot find implementation or library stub for module named "a.b"
2315
2315
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'
2359
+
main:1: error: Cannot find implementation or library stub for module named "a.b.c.d"
2360
2360
main:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
2361
-
main:1: error: Cannot find implementation or library stub for module named 'a.b.c'
2361
+
main:1: error: Cannot find implementation or library stub for module named "a.b.c"
2362
2362
2363
2363
[case testModuleGetattrInit8a]
2364
-
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
2364
+
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