flynt icon indicating copy to clipboard operation
flynt copied to clipboard

Implement PEP 701 – Syntactic formalization of f-strings for Python 3.12+

Open EwoutH opened this issue 9 months ago • 0 comments

PEP 701 lifts some restrictions on the usage of f-strings. Expression components inside f-strings can now be any valid Python expression, including strings reusing the same quote as the containing f-string, multi-line expressions, comments, backslashes, and unicode escape sequences.

https://github.com/psf/black/pull/3822 and https://github.com/astral-sh/ruff/pull/7376 might be useful as reference.

EwoutH avatar Sep 26 '23 08:09 EwoutH