nested-min-max
(W3301) is still giving a wrong suggestion in some cases
#8524
Labels
Milestone
nested-min-max
(W3301) is still giving a wrong suggestion in some cases
#8524
Bug description
With the following code
pylint detects a nested call of
max
and suggests to just remove the innermax
. But this leads to a type error:Configuration
No response
Command used
Pylint output
Expected behavior
At the very least not give a wrong suggestion, but ideally give a right one, like for other instances of this problem recently addressed in #8168 and #8234.
For instance, with
we now get the working suggestion to replace it with
so we could suggest in this case too to add a
*
:(In this case, one could of course even be smarter, but this may be too specific.)
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: