black/tests/fstring.py
Zsolt Dollenstein 80bd2b3134 Normalize string quotes (#75)
* 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
2018-03-31 11:21:25 -07:00

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)}}"