[Autofix error] RUF010 autofix fails when the expression is in parentheses, e.g. f"{(str(a))}"
#4520
Labels
fixes
Related to suggested fixes for violations
RUF010 creates an invalid autofix when the expression is already in parentheses, e.g.
f"{(str(a))}"
is replaced by
f"{(a!s)}"
which is invalid syntax.
Command:
ruff version fd16d65
The text was updated successfully, but these errors were encountered: