Message329904
I think this is a bug, actually. It's going to be an incompatibility in `ast.parse` so we'll probably want to only enable it in Python 3.8.
This should have stringified annotations:
>>> p = ast.parse("""
... from __future__ import annotations
... a: 1
... """)
>>> p.body[1].annotation # ACTUAL
<_ast.Num object at 0x1048cf470>
>>> p.body[1].annotation # EXPECTED
<_ast.Str object at 0x1048cf6a0> |
|
Date |
User |
Action |
Args |
2018-11-14 12:46:34 | lukasz.langa | set | recipients:
+ lukasz.langa, eric.smith, kayhayen, levkivskyi |
2018-11-14 12:46:34 | lukasz.langa | set | messageid: <1542199594.89.0.788709270274.issue35143@psf.upfronthosting.co.za> |
2018-11-14 12:46:34 | lukasz.langa | link | issue35143 messages |
2018-11-14 12:46:34 | lukasz.langa | create | |
|