8000 Do not show unused-ignore errors in unreachable code, and make it a real error code by ilevkivskyi · Pull Request #15164 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Do not show unused-ignore errors in unreachable code, and make it a real error code #15164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve test
  • Loading branch information
ilevkivskyi committed May 1, 2023
commit 7e7f95ff1bd2608ee781b4ab01cbdb1a60fca48c
1 change: 1 addition & 0 deletions test-data/unit/check-ignore.test
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ try:
import bar # type: ignore[import] # E: Unused "type: ignore" comment
import foobar # type: ignore[unused-ignore]
import barfoo # type: ignore[import,unused-ignore]
import missing # type: ignore[import,unused-ignore]
except Exception:
pass
[file foo.py]
Expand Down
0