File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,14 +333,11 @@ def xab(): pass # E: Name "xab" already defined (possibly by an import)
333333[case testAccessingUnknownModuleFromOtherModule]
334334import x
335335x.nonexistent.foo
336- x.z
336+ x.z # E: Module has no attribute "z"
337337[file x.py]
338- import nonexistent
338+ import nonexistent # E: Cannot find implementation or library stub for module named "nonexistent" \
339+ # N: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
339340[builtins fixtures/module.pyi]
340- [out]
341- tmp/x.py:1: error: Cannot find implementation or library stub for module named "nonexistent"
342- tmp/x.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
343- main:3: error: Module has no attribute "z"
344341
345342[case testUnknownModuleImportedWithinFunction]
346343def f():
You can’t perform that action at this time.
0 commit comments