You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a symptom of a more general problem with the way our "expression generator" for creating autofixes works — it often doesn't preserve stylistic details such as quoting style etc. (#7799)
However, in this specific case, I think it should be pretty easy to preserve more stylistic details for this rule
Description
SIM108 auto-fix changes quote style of nested f-string unnecessarily.
Versions
Python version: 3.12
Ruff version: v0.1.14
Reproduce
Playground link: https://play.ruff.rs/1519e519-94fc-412f-abbb-c8c838a698e7
Given the following:
SIM108 autofix converts this to:
Expected:
The text was updated successfully, but these errors were encountered: