Message369140
>>> from __future__ import annotations
>>> a: Type[int, str]
>>> b: Type[(int, str, *types)]
>>> __annotations__
{'a': 'Type[int, str]', 'b': 'Type[int, str, *types]'}
>>> ast.parse(__annotations__["b"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/isidentical/cpython/master/Lib/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 1
Type[int, str, *types]
^
SyntaxError: invalid syntax |
|
Date |
User |
Action |
Args |
2020-05-17 17:36:39 | BTaskaya | set | recipients:
+ BTaskaya |
2020-05-17 17:36:39 | BTaskaya | set | messageid: <1589736999.01.0.252396126207.issue40663@roundup.psfhosted.org> |
2020-05-17 17:36:39 | BTaskaya | link | issue40663 messages |
2020-05-17 17:36:38 | BTaskaya | create | |
|