Files
openide/python/testData/formatter/fStringSpacesBetweenFragmentAndExpressionBracesPreserved.py
Mikhail Golubev 7183fd55b5 PY-40778 Keep spaces between f-string fragment own braces and that of embedded expression
GitOrigin-RevId: f392f683b0c114fb046ede5b317bc4b0be207ec1
2020-08-17 11:12:04 +00:00

9 lines
204 B
Python

s = f'{ {} }'
s1 = f'{ {1} }'
s2 = f'{ {1: 2} }'
s3 = f'{ {x for x in "foo"} }'
s4 = f'{ {x: 42 for x in "foo"} }'
s5 = f'{ {1} + {2} }'
s6 = f'{ {1} if True else {2} }'
s7 = f'{ {1}.intersection({2}) }'