ruff
98d46579 - Avoid attempting to fix `.format(...)` calls with too-few-arguments (#6401)

Commit
2 years ago
Avoid attempting to fix `.format(...)` calls with too-few-arguments (#6401) ## Summary We can anticipate earlier that this will error, so we should avoid flagging the error at all. Specifically, we're talking about cases like `"{1} {0}".format(*args)"`, in which we'd need to reorder the arguments in order to remove the `1` and `0`, but we _can't_ reorder the arguments since they're not statically analyzable. Closes https://github.com/astral-sh/ruff/issues/6388.
Author
Parents
Loading