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.
1 parent 6e9fb59 commit f4ae759Copy full SHA for f4ae759
test-data/unit/check-ignore.test
@@ -275,6 +275,14 @@ class CD(six.with_metaclass(M)): # E: Multiple metaclass definitions
275
276
[builtins fixtures/tuple.pyi]
277
278
+[case testUnusedIgnoreCodeOrder]
279
+# flags: --warn-unused-ignores
280
+5 # type: ignore[import, steven] # E: Unused "type: ignore[import, steven]" comment
281
+-- User ordering of codes is preserved
282
+5 # type: ignore[steven, import] # E: Unused "type: ignore[steven, import]" comment
283
+-- Spacing is not preserved
284
+5 # type: ignore[ steven, import ] # E: Unused "type: ignore[steven, import]" comment
285
+
286
[case testUnusedIgnoreTryExcept]
287
# flags: --warn-unused-ignores
288
try:
0 commit comments