-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
from __future__ import annotations doesn't ignore annotations correctly #3236
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
Comments
Thanks for opening an issue! This error makes sense somewhat as you should use
While Python ignores the variable annotations, they can still contain errors such as this one. |
I submitted a near-identical issue to mypy, as the tools should still accept these as valid, even if they aren't preferred - as they are valid typehints. Disagree with closure Also note that mypy are planning to add this functionality (priority 1 - normal) |
Furthermore, here is the issue, complete with MyPy's feature and priority tags, that I submitted to MyPy (along with confirmation this is being added; i.e. MyPy will stop reporting this error). |
https://www.python.org/dev/peps/pep-0585/ |
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
E1136: Value 'defaultdict' is unsubscriptable (unsubscriptable-object)
Current behaviour
Throws
E1136: Value 'defaultdict' is unsubscriptable (unsubscriptable-object)
Expected behaviour
Ignores it (as Python itself does)
pylint --version output
The text was updated successfully, but these errors were encountered: