We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This type ignore is valid, if python >= 3.9 the block isn't checked, but unused ignore is still checked and a false positive error is raised.
import sys if sys.version_info < (3, 9): asdfgsdfgb() # type: ignore
https://mypy-play.net/?mypy=latest&python=3.10&flags=warn-unused-ignores&gist=f40e0f6968779e61d62bec4a7b85b27c
The text was updated successfully, but these errors were encountered:
also:
import typing if not typing.TYPE_CHECKING: asdfgsdfgb() # type: ignore
Sorry, something went wrong.
Duplicate of #8823
No branches or pull requests
This type ignore is valid, if python >= 3.9 the block isn't checked, but unused ignore is still checked and a false positive error is raised.
https://mypy-play.net/?mypy=latest&python=3.10&flags=warn-unused-ignores&gist=f40e0f6968779e61d62bec4a7b85b27c
The text was updated successfully, but these errors were encountered: