-
-
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
Fixed false positive nested-min-max for nested lists #9323
Fixed false positive nested-min-max for nested lists #9323
Conversation
Nesting is useful for finding the maximum in a matrix. Therefore, pylint allows nesting of the form: max(max([[1, 2, 3], [4, 5, 6]])) Closes pylint-dev#9307
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #9323 +/- ##
=======================================
Coverage 95.81% 95.81%
=======================================
Files 173 173
Lines 18767 18767
=======================================
Hits 17981 17981
Misses 786 786
|
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, great fix ! I'd like to see the primer's result before merging,, I think it depends on
#9330 being merged and then a rebase on it.
It can be rebased now :) |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 6d2846d |
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.
Good job fixing the primers @jacobtylerwalls :)
Nesting is useful for finding the maximum in a matrix. Therefore, pylint allows nesting of the form: max(max([[1, 2, 3], [4, 5, 6]])) Closes #9307 Co-authored-by: Pierre Sassoulas <[email protected]> (cherry picked from commit da13c74)
Nesting is useful for finding the maximum in a matrix. Therefore, pylint allows nesting of the form: max(max([[1, 2, 3], [4, 5, 6]])) Closes #9307 Co-authored-by: Pierre Sassoulas <[email protected]> (cherry picked from commit da13c74) Co-authored-by: Udi Fuchs <[email protected]>
Type of Changes
Description
Nesting is useful for finding the maximum in a matrix.
Therefore, pylint now allows nesting of the form:
Closes #9307