File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -522,13 +522,16 @@ if int() is str(): # E: Non-overlapping identity check (left operand type: "int
522522[builtins fixtures/primitives.pyi]
523523
524524[case testErrorCodeMissingModule]
525- from defusedxml import xyz # E: Cannot find implementation or library stub for module named "defusedxml" [import-not-found]
525+ from defusedxml import xyz # E: Library stubs not installed for "defusedxml" [import-untyped] \
526+ # N: Hint: "python3 -m pip install types-defusedxml" \
527+ # N: (or run "mypy --install-types" to install all missing stub packages)
526528from nonexistent import foobar # E: Cannot find implementation or library stub for module named "nonexistent" [import-not-found]
527529import nonexistent2 # E: Cannot find implementation or library stub for module named "nonexistent2" [import-not-found]
528530from nonexistent3 import * # E: Cannot find implementation or library stub for module named "nonexistent3" [import-not-found]
529531from pkg import bad # E: Module "pkg" has no attribute "bad" [attr-defined]
530532from pkg.bad2 import bad3 # E: Cannot find implementation or library stub for module named "pkg.bad2" [import-not-found] \
531533 # N: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
534+
532535[file pkg/__init__.py]
533536
534537[case testErrorCodeAlreadyDefined]
You can’t perform that action at this time.
0 commit comments