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 7bae510 commit bf1fc81Copy full SHA for bf1fc81
test-data/unit/check-flags.test
@@ -2534,3 +2534,11 @@ enable_all_error_codes = True
2534
2535
\[mypy-tests.*]
2536
disable_error_code = ignore-without-code
2537
+
2538
+[case testSpotCheckEnableAllErrorCodesCountermand]
2539
+# flags: --enable-all-error-codes --disable-error-code unused-ignore
2540
+x = 2 # type: ignore # E: "type: ignore" comment without error code
2541
2542
+[case testSpotCheckEnableAllErrorCodesCountermandCountermand]
2543
+# flags: --enable-all-error-codes --disable-error-code ignore-without-code --disable-error-code unused-ignore --enable-error-code ignore-without-code
2544
0 commit comments