[issue33552] f-strings and string annotations

2021-10-25 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pytho

[issue33552] f-strings and string annotations

2018-05-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are problems with converting annotations containing f-strings into strings (from __future__ import annotations). For example f'''{"'"}''' is converted to f'{"\'"}', but the latter is a syntax error. >>> from __future__ import annotations >>> x: f'''