-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix false negative for nonlocal-without-binding
.
#7099
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
Fix false negative for nonlocal-without-binding
.
#7099
Conversation
It was not emitted when the `nonlocal` name is assigned later on in the same scope. Closes pylint-dev#6883
for more information, see https://pre-commit.ci
This comment has been minimized.
This comment has been minimized.
Pull Request Test Coverage Report for Build 2622111493
π - Coveralls |
π |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry!
If you're up for it I would appreciate if we could add the confidence
level to this message as well. But no worries if you don't have the time to do that right now!
This could go into a patch release by the way. Seeing as you are the original poster: do you need this bug fix soon or can you wait until |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you !
I think it's a false negative and we only put false positive in patch release or we can get a vicious circle where the issues increase with a new patch instead of decreasing π |
Ah, my bad. Never mind! |
I've added HIGH; is that the right one? And no worries by the way - I am in no rush; I thought it might have gone under the radar with all the issues you maintainers look at every day. |
It look like there's no inference or control flow involved so I'd say yes. (Maybe some control flow ?) |
I double checked. There is no control flow (it's a very basic check) so this is indeed correct! |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit b720f3c |
It was not emitted when the
nonlocal
name is assigned later on in the same scope.Closes #6883
Type of Changes