-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix a false positive for unbalanced-tuple-unpacking.
#10724
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 a false positive for unbalanced-tuple-unpacking.
#10724
Conversation
β¦is assigned to a function call and the structure of the function's return value is ambiguous. Closes pylint-dev#10721
unbalanced-tuple-unpacking when a tuple β¦unbalanced-tuple-unpacking.
This comment has been minimized.
This comment has been minimized.
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10724 +/- ##
=======================================
Coverage ? 95.98%
=======================================
Files ? 176
Lines ? 19537
Branches ? 0
=======================================
Hits ? 18752
Misses ? 785
Partials ? 0
π New features to boost your workflow:
|
Pierre-Sassoulas
left a comment
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, just curious about what is happening when it should raise and maybe comment that it's a known false negative. (because there's a constraint for None now in astroid, maybe we can do it?)
This comment has been minimized.
This comment has been minimized.
|
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit f4bf17a |
* Fix a false positive for ``unbalanced-tuple-unpacking`` when a tuple is assigned to a function call and the structure of the function's return value is ambiguous. Closes #10721 Co-authored-by: Pierre Sassoulas <[email protected]> (cherry picked from commit 1496340)
β¦ple-unpacking``. (#10726) Fix a false positive for ``unbalanced-tuple-unpacking``. (#10724) * Fix a false positive for ``unbalanced-tuple-unpacking`` when a tuple is assigned to a function call and the structure of the function's return value is ambiguous. Closes #10721 (cherry picked from commit 1496340) Co-authored-by: Mark Byrne <[email protected]> Co-authored-by: Pierre Sassoulas <[email protected]>
Type of Changes
Description
Fix a false positive for
unbalanced-tuple-unpackingwhen a tuple is assigned to a function call and the structure of the function's return value is ambiguous.Closes #10721