-
Notifications
You must be signed in to change notification settings - Fork 179
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
Spurious import warning for type used in nested quoted annotation #447
Comments
When fixing this, be careful not to break |
I wrote an implementation of this in #479 -- would appreciate anyone to try it out and review the code \o/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is similar to #290 and #313, but seems to still be an issue.
If you import a type and then use it only within a type annotation which includes a nested quoted part, then
pyflakes
reports the import as unused.This can be worked around by quoting the whole of the type annotation:
I'm using pyflakes 2.1.1 on Python 3.5.2 on Linux.
The text was updated successfully, but these errors were encountered: