-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
help wantedContributions especially welcomeContributions especially welcomeruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
With the following snippet:
class Foo:
_min = 0
def foo(self, value):
if value < self._min:
self._min = value
pylint 3.1.0 returns:
foo.py:6:8: R1730: Consider using '_min = min(_min, value)' instead of unnecessary if block (consider-using-min-builtin)
ruff 0.3.7 does not report it. pylint 3.0.2 did not report it too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedContributions especially welcomeContributions especially welcomeruleImplementing or modifying a lint ruleImplementing or modifying a lint rule