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 eric.smith
Recipients BTaskaya, eric.smith, gvanrossum, lukasz.langa, vstinner, yselivanov
Date 2020-05-27.13:56:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590587769.94.0.16333546192.issue40794@roundup.psfhosted.org>
In-reply-to
Content
Hmm. That's a regression, at least from 3.7, which is the only version I have ready access to:

$ python3
Python 3.7.3 (default, Mar 27 2019, 13:36:35) 
[GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dataclasses
>>> @dataclasses.dataclass
... class X:
...   a: int
...   b:int
... 
>>> X.__doc__
'X(a: int, b: int)'
>>> 

$ python3
Python 3.7.3 (default, Mar 27 2019, 13:36:35) 
[GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import annotations
>>> import dataclasses
>>> @dataclasses.dataclass
... class X:
...   a: int
...   b:int
... 
>>> X.__doc__
"X(a: 'int', b: 'int')"
History
Date User Action Args
2020-05-27 13:56:09eric.smithsetrecipients: + eric.smith, gvanrossum, vstinner, lukasz.langa, yselivanov, BTaskaya
2020-05-27 13:56:09eric.smithsetmessageid: <1590587769.94.0.16333546192.issue40794@roundup.psfhosted.org>
2020-05-27 13:56:09eric.smithlinkissue40794 messages
2020-05-27 13:56:09eric.smithcreate