-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
acceptedReady for implementationReady for implementationgood first issueGood for newcomersGood for newcomersruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
I tested Ruff 0.0.291 which implements FURB140. It works great! I have a suggestion to cover more use cases in the same spirit:
def average(*args):
return sum(args) / len(args)
# Correctly reported
print(sum(average(a, b) for a, b in [(85, 60), (100, 80)]))
# Currently not reported
print(sum(average(*t) for t in [(85, 60), (100, 80)]))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationgood first issueGood for newcomersGood for newcomersruleImplementing or modifying a lint ruleImplementing or modifying a lint rule