Skip to content

Commit d143ff7

Browse files
committed
.
1 parent 3edbdb1 commit d143ff7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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)
526528
from nonexistent import foobar # E: Cannot find implementation or library stub for module named "nonexistent" [import-not-found]
527529
import nonexistent2 # E: Cannot find implementation or library stub for module named "nonexistent2" [import-not-found]
528530
from nonexistent3 import * # E: Cannot find implementation or library stub for module named "nonexistent3" [import-not-found]
529531
from pkg import bad # E: Module "pkg" has no attribute "bad" [attr-defined]
530532
from 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]

0 commit comments

Comments
 (0)