-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 negative | No binding for nonlocal found #6883
Comments
Created this as I thought this would deserve its own issue since it was not the original subject of #6812 |
there is a somewhat similar behaviour with global A = 1
class Foo:
global A
A = 2
print(Foo.A) I beg your pardon if I have entered this comment the wrong way again, but I simply don't find a template or anything like it you have been mentioning |
@da-dada can you view this template for reporting a bug? https://github.com/PyCQA/pylint/issues/new?assignees=&labels=bug%2Cneeds+triage&template=BUG-REPORT.yml |
@mbyrnepr2 I'll give it a try |
Created #7098 so that the current issue can stay focused on the original nonlocal issue. |
It was not emitted when the `nonlocal` name is assigned later on in the same scope. Closes pylint-dev#6883
a = 1
pylint also finds the missing bindingOriginally posted by @da-dada in #6812 (comment)
Further information:
The text was updated successfully, but these errors were encountered: