Skip to content
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

mypy keeps complaining error: unused "type: ignore" comment in pre-commit #5026

Closed
unkcpz opened this issue Jul 22, 2021 · 2 comments
Closed
Labels

Comments

@unkcpz
Copy link
Member

unkcpz commented Jul 22, 2021

The pre-commit failed with mypy error: unused "type: ignore" comment. Have no idea how to fix this, and it prevents me from running pre-commit check locally.

After checkout to #4996 this 'unused' error disappear.

The python version of my environment is 3.8.10.

@chrisjsewell
Copy link
Member

chrisjsewell commented Aug 11, 2021

See #4970 (comment); I managed to do this with zero issues: #5066 😉 , just make sure your environment is up-to-date, and I highly recommend the use of tox

@chrisjsewell
Copy link
Member

Note, if you really can't fix it, then you can always locally comment out warn_unused_ignores = true in the pyproject.toml

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

No branches or pull requests

2 participants