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
the formatter is too conservative when making sure it doesn't try to escape quotes inside formatted values, and doesn't take into account triple quotes
**Summary** Quoting of f-strings can change if they are triple quoted
and only contain single quotes inside.
Fixes#6841
**Test Plan** New fixtures
---------
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
the formatter is too conservative when making sure it doesn't try to escape quotes inside formatted values, and doesn't take into account triple quotes
input:
f''' {""} '''
output:
f''' {""} '''
expected:
f""" {""} """
i expect
ruff/crates/ruff_python_formatter/src/expression/string.rs
Lines 36 to 42 in 7e9023b
The text was updated successfully, but these errors were encountered: