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 vstinner
Recipients BTaskaya, gvanrossum, lukasz.langa, mark.dickinson, serhiy.storchaka, vstinner
Date 2020-04-13.22:55:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586818544.82.0.281356102885.issue32894@roundup.psfhosted.org>
In-reply-to
Content
It seems like the fix works as expected:

>>> from __future__ import annotations
>>> def f(x: A[1e1000, 1e1000j]): pass
... 

>>> f.__annotations__
{'x': 'A[1e309, 1e309j]'}

>>> A=list
>>> eval(f.__annotations__['x'])
list[inf, infj]
History
Date User Action Args
2020-04-13 22:55:44vstinnersetrecipients: + vstinner, gvanrossum, mark.dickinson, lukasz.langa, serhiy.storchaka, BTaskaya
2020-04-13 22:55:44vstinnersetmessageid: <1586818544.82.0.281356102885.issue32894@roundup.psfhosted.org>
2020-04-13 22:55:44vstinnerlinkissue32894 messages
2020-04-13 22:55:44vstinnercreate