This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz
Date 2020-01-05.13:26:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578230811.94.0.250306045254.issue39220@roundup.psfhosted.org>
In-reply-to
Content
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'} ```
History
Date User Action Args
2020-01-05 13:26:51Carl.Friedrich.Bolzsetrecipients: + Carl.Friedrich.Bolz
2020-01-05 13:26:51Carl.Friedrich.Bolzsetmessageid: <1578230811.94.0.250306045254.issue39220@roundup.psfhosted.org>
2020-01-05 13:26:51Carl.Friedrich.Bolzlinkissue39220 messages
2020-01-05 13:26:51Carl.Friedrich.Bolzcreate