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 BTaskaya
Recipients BTaskaya, eric.smith, gvanrossum, lukasz.langa, vstinner, yselivanov
Date 2020-05-27.13:45:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590587129.29.0.615402941634.issue40794@roundup.psfhosted.org>
In-reply-to
Content
> It,sounds like you are trying to get the effect of putting 'from __future__ import dataclasses' at the top of dataclasses'.py, right?

Yes, since compile will automatically inherit the flags of the current frame to the compiled code I'm basically inserting a 'future annotations' import at the top of the file. 

> Are you saying that without this, the output of the test script is correct?

Yes.
History
Date User Action Args
2020-05-27 13:45:29BTaskayasetrecipients: + BTaskaya, gvanrossum, vstinner, eric.smith, lukasz.langa, yselivanov
2020-05-27 13:45:29BTaskayasetmessageid: <1590587129.29.0.615402941634.issue40794@roundup.psfhosted.org>
2020-05-27 13:45:29BTaskayalinkissue40794 messages
2020-05-27 13:45:29BTaskayacreate