Skip to content

python-check-blanket-type-ignore should allow line containing only # type: ignore #158

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

Closed
randolf-scholz opened this issue Aug 16, 2023 · 3 comments

Comments

@randolf-scholz
Copy link

mypy allows ignoring an entire file by adding a # type: ignore comment at the top of the file: python/mypy#964.

@asottile
Copy link
Member

the entire point of it is to be explicit about what you're ignoring. blanket ignoring a whole file is not in the spirit of the check

@randolf-scholz
Copy link
Author

Blanket ignoring a whole file is also not in the "spirit" of mypy, yet they have the option...

@asottile
Copy link
Member

idk why you seem to be arguing that "check blanket ignores" should be allowing a blanket ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants