-
Notifications
You must be signed in to change notification settings - Fork 879
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
False positive for F821
on circular reference in TYPE_CHECKING
block
#11245
Comments
nit: indeed, PEP 563 applies to annotations, but I think the issue is still valid though 👍 |
Not sure... @AlexWaygood would know. |
Yeah I think TL;DR: I agree that this is a false positive |
If you tried to use |
Keywords searched for before creating issue:
F821
,TYPE_CHECKING
.Example code that produces the false positive:
Command line and output:
Expected that
F821
would not be raised in aTYPE_CHECKING
block for a circular reference when using postponed evaluation of annotations (PEP 563).The text was updated successfully, but these errors were encountered: