We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
# type: ignore
1 parent 184fb28 commit d379a93Copy full SHA for d379a93
test-data/unit/check-ignore.test
@@ -32,6 +32,21 @@ from xyz_m import * # type: ignore
32
x # E: Name 'x' is not defined
33
1() # E: "int" not callable
34
35
+[case testIgnoreImportBadModule]
36
+import m # type: ignore
37
+from m import a # type: ignore
38
+[file m.py]
39
++ # A parse error, but we shouldn't even parse m.py
40
+[out]
41
+
42
+[case testIgnoreImportStarFromBadModule]
43
+from m import * # type: ignore
44
45
++
46
47
+main:1: note: In module imported here:
48
+tmp/m.py:1: error: Parse error before end of line
49
50
[case testIgnoreAssignmentTypeError]
51
x = 1
52
x = '' # type: ignore
0 commit comments