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
Date 2020-05-27.12:48:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590583732.13.0.63871735416.issue40794@roundup.psfhosted.org>
In-reply-to
Content
While I was working on making 'future annotations' default, I noticed that dataclasses acts differently under the annotation feature. One example would be the file [signature.py]:

[ without future import]
 $ python t.py
X(a: int, b: int)
[ with future import]
 $ python t.py
X(a: '_type_a', b: '_type_b') -> '_return_type'

This is causing too much test to fail,
AssertionError: '_return_type' is not None

- C(x:'_type_x')->'_return_type'
+ C(x:collections.deque)

- C(x:'_type_x'=<factory>)->'_return_type'
+ C(x:collections.deque=<factory>)

- C(x:'_type_x')->'_return_type'
+ C(x:List[int])

(and more)
History
Date User Action Args
2020-05-27 12:48:52BTaskayasetrecipients: + BTaskaya, eric.smith
2020-05-27 12:48:52BTaskayasetmessageid: <1590583732.13.0.63871735416.issue40794@roundup.psfhosted.org>
2020-05-27 12:48:52BTaskayalinkissue40794 messages
2020-05-27 12:48:52BTaskayacreate