Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
There is the same problem with annotations. >>> from __future__ import annotations >>> def f() -> X[f'''{"'"}''']: pass ... >>> print(f.__annotations__['return']) X[f'{"\'"}'] You can look at https://github.com/berkerpeksag/astor. Maybe this problem is solved in that project. ---------- nosy: +berker.peksag, serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28002> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com