-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Enhancement ✨Improvement to a componentImprovement to a component
Description
Current problem
Running pylint
on the following snippet, I get a R1729: Use a generator
hint for the all
expression, but not for the sum
. I suspect that there might be more occurrences where this happens.
all([True for i in range(1)])
sum([True for i in range(1)])
Desired solution
I would expect the same hint for the second line, with the sum
method.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Enhancement ✨Improvement to a componentImprovement to a component