Multiline f-strings aren't formatted correctly #2747
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
When you have multiple f-strings (I suspect without a
+
between them) then when it reformats them itwill just remove the new lines without merging the strings into a single compound string, e.g.
f"{1}" f" {2}"
rather than
f"{1} {2}"
To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
Expected behavior
Environment
Additional context
The text was updated successfully, but these errors were encountered: