-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add warn_unused_ignores = True
to our mypy config
#8231
Comments
I added mypy errors
So in the PR for this, do we also remove the unused |
After getting rid of the mypy errors are removing unnecessary type: ignore
|
Gah, looks like I should remove the |
Okay, looks like we gotta keep this until we kill Python 2 support. Until we remove that, we can't remove some of those comments. We're triggering 2 mypy runs, that hit 2 separate "bunches" of |
Agreed, the effort we will put to correct the types after removing |
Do you want me to create a PR to do that. The difference in displaying mypy errors is pretty obvious
|
Yea, a PR removing |
#8235 created to remove it
May I know more details on what the issue here exactly is? I myself have macOS and I didn't face any issue involving pre-commit and |
@deveshks You see this behavior right? Could you report that mypy is printing one-word-per-line when --pretty is passed, and used with |
Done in python/mypy#8816 . Sorry the mention of Windows threw me off and I confused the issue with something else. |
It looks like you forgot to close this issue.
|
Yup, the config was added in #9340. Thanks for catching this. |
This would catch "unused" / redundant
# type: ignore
comments, and allow us to remove them when they're no longer necessary.The text was updated successfully, but these errors were encountered: