-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make self-cls-assignment
check tuple assignment
#5268
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
Conversation
Pull Request Test Coverage Report for Build 1431817024
💛 - 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.
Nice cleanup on top of the fix ! 👏
child | ||
for child in scope.body | ||
if isinstance(child, nodes.Nonlocal) and assign_names & set(child.names) | ||
child for child in scope.body if isinstance(child, nodes.Nonlocal) |
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.
It seems like we also need to do some more work on node.scope()
.
Cannot access member "body" for type "LocalsDictNodeNG"
Member "body" is unknown
Co-authored-by: Marc Mueller <[email protected]>
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.
Looks good! Can be merged once the imports are fixed.
Co-authored-by: Marc Mueller <[email protected]>
doc/whatsnew/<current release.rst>
.Type of Changes
Description
Continuation of #5254
Basically we only checked single assignments and will now also check tuple assignments.
Furthermore, I have removed some redundant code.