-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 assignment-from-none false negative case using list.sort() #5738
Fix assignment-from-none false negative case using list.sort() #5738
Conversation
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.
Thank you ! LGTM, I only have some typing and formatting nitpicks
@Pierre-Sassoulas Thanks for the quick review! Will clear the pipeline errors and apply your suggestions. |
d1a786b
to
1a8d787
Compare
Pull Request Test Coverage Report for Build 1782765241
π - 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.
Thanks @orSolocate! Another great addition. Just some comments about style and order. Fix itself is quite elegant π
1a8d787
to
7429c46
Compare
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 for this, it will definitely help newbies and distracted veterans alike.
self.add_message("assignment-from-no-return", node=node) | ||
else: | ||
for rnode in returns: | ||
for ret_node in return_nodes: |
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.
We could even rename it to return_node
, I don't suggest because an IDE refactor should do it instantly.
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.
You added it yourself already while merging?
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 wasn't that important, so I merged :)
Type of Changes
Description
Fix
assignment-from-none
false negative case usinglist.sort()
Closes #5722