nested-min-max (PLW3301)#
Derived from the Pylint linter.
Autofix is sometimes available.
What it does#
Checks for nested min
and max
calls.
Why is this bad?#
Nested min
and max
calls can be flattened into a single call to improve
readability.
Example#
Use instead: