Skip to content
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

Merged
merged 7 commits into from
Dec 30, 2023

Conversation

udifuchs
Copy link
Contributor

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Nesting is useful for finding the maximum in a matrix.
Therefore, pylint now allows nesting of the form:

max(max([[1, 2, 3], [4, 5, 6]]))

Closes #9307

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
Copy link

codecov bot commented Dec 24, 2023

Codecov Report

All modified and coverable lines are covered by tests βœ…

Comparison is base (65cf711) 95.81% compared to head (6d2846d) 95.81%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9323   +/-   ##
=======================================
  Coverage   95.81%   95.81%           
=======================================
  Files         173      173           
  Lines       18767    18767           
=======================================
  Hits        17981    17981           
  Misses        786      786           
Files Coverage Ξ”
pylint/checkers/nested_min_max.py 100.00% <ΓΈ> (ΓΈ)

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a 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.

@Pierre-Sassoulas Pierre-Sassoulas added Blocked 🚧 Blocked by a particular issue and removed Blocked 🚧 Blocked by a particular issue labels Dec 26, 2023
@Pierre-Sassoulas
Copy link
Member

It can be rebased now :)

Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 6d2846d

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a 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 :)

@Pierre-Sassoulas Pierre-Sassoulas merged commit da13c74 into pylint-dev:main Dec 30, 2023
44 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 30, 2023
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)
Pierre-Sassoulas pushed a commit that referenced this pull request Dec 30, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive nested-min-max for nested lists
3 participants