Message359341
PEP 563 interacts in weird ways with constant folding. running the following code: ``` from __future__ import annotations def f(a: 5 + 7) -> a ** 39: return 12 print(f.__annotations__) ``` I would expect this output: ``` {'a': '5 + 7', 'return': 'a ** 39'} ``` But I get: ``` {'a': '12', 'return': 'a ** 39'} ``` | |
| Date | User | Action | Args | | 2020-01-05 13:26:51 | Carl.Friedrich.Bolz | set | recipients: + Carl.Friedrich.Bolz | | 2020-01-05 13:26:51 | Carl.Friedrich.Bolz | set | messageid: <1578230811.94.0.250306045254.issue39220@roundup.psfhosted.org> | | 2020-01-05 13:26:51 | Carl.Friedrich.Bolz | link | issue39220 messages | | 2020-01-05 13:26:51 | Carl.Friedrich.Bolz | create | | |