Rule suggestion: Convert list.extend([x]) to list.append(x) #14518
Labels
needs-decision
Awaiting a decision from a maintainer
rule
Implementing or modifying a lint rule
type-inference
Requires more advanced type inference.
This may depend on RedKnot, but with type information, this could hit a lot of code. If we know
retval
is a list, consider converting:to
And similarly, merge
etc.
It may not seem like merging will catch a lot of cases, but having the Ruff action available makes it available in my editor, which is a great convenience.
The text was updated successfully, but these errors were encountered: