-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
#14835 asked that FURB140 be changed to accommodate the pattern itertools.starmap(func, zip(...)), suggesting map(func, ...) as the replacement.
This comment lists four steps of improvements, of which the second doesn't seem to be actionable/applicable (FURB140 does not check for map). This issue discusses the third:
A new rule that recommends using
mapoverstarmap(func, zip)
starmap(func, zip(a, b, c)) can be transformed losslessly to map(func, a, b, c), so violations are both easy to detect and safely fixable, even with comments.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule