Message316886
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'''{"'"}'''
>>> print(__annotations__['x'])
f'{"\'"}'
>>> x: f'{"\'"}'
File "<stdin>", line 1
SyntaxError: f-string expression part cannot include a backslash
More complex examples:
f"""{"'''"}"""
f"""{"'" '"'}"""
f"""{"'''"}""" f'''{'"""'}''' |
|
Date |
User |
Action |
Args |
2018-05-17 07:03:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, eric.smith, lukasz.langa |
2018-05-17 07:03:06 | serhiy.storchaka | set | messageid: <1526540586.49.0.682650639539.issue33552@psf.upfronthosting.co.za> |
2018-05-17 07:03:06 | serhiy.storchaka | link | issue33552 messages |
2018-05-17 07:03:06 | serhiy.storchaka | create | |
|