Skip to content

Commit bf1fc81

Browse files
new tests for countermanding
1 parent 7bae510 commit bf1fc81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test-data/unit/check-flags.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,3 +2534,11 @@ enable_all_error_codes = True
25342534

25352535
\[mypy-tests.*]
25362536
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+
x = 2 # type: ignore # E: "type: ignore" comment without error code

0 commit comments

Comments
 (0)