Quotes types in multiline f-string literals are not formatted #2640
Labels
F: strings
Related to our handling of strings
R: duplicate
This issue or pull request already exists
T: bug
Something isn't working
Describe the bug
Single quotes in multiline f-string literals are left unchanged even when unnecessary
To Reproduce
Run black on
f"""{'a'}"""
the literal will be left unchanged
Expected behavior
The literal gets formatted into
f"""{"a"}"""
Environment
The text was updated successfully, but these errors were encountered: