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 issue is to kickoff a discussion around the formatting for f-strings. With PEP 701, f-strings changes the behavior with what kind of syntax is allowed:
dhruvmanila
changed the title
Formatter: handle comments and quotes for f-strings
Formatter: handle comments, quotes, and expressions inside f-strings
Dec 11, 2023
This issue is to kickoff a discussion around the formatting for f-strings. With PEP 701, f-strings changes the behavior with what kind of syntax is allowed:
f"first {f"second {f"third ..."} second"} first"
f"double quotes {"same quotes in strings" + f"same quotes in f-strings"}"
This means that the formatter needs to be updated to possibly handle f-strings on it's own. Currently, it's handled as part of string formatting.
The text was updated successfully, but these errors were encountered: