
* Normalize string quotes Convert single-quoted strings to double-quoted. Convert triple single-quoted strings to triple double-quoted. Do not touch any strings where conversion would increase the number of backslashes. Fixes #51. * reformat Black itself
6 lines
230 B
Python
6 lines
230 B
Python
f"f-string without formatted values is just a string"
|
|
f"{{NOT a formatted value}}"
|
|
f"some f-string with {a} {few():.2f} {formatted.values!r}"
|
|
f"{f'{nested} inner'} outer"
|
|
f"space between opening braces: { {a for a in (1, 2, 3)}}"
|