Message370085
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')" |
|
| Date |
User |
Action |
Args |
| 2020-05-27 13:56:09 | eric.smith | set | recipients:
+ eric.smith, gvanrossum, vstinner, lukasz.langa, yselivanov, BTaskaya |
| 2020-05-27 13:56:09 | eric.smith | set | messageid: <1590587769.94.0.16333546192.issue40794@roundup.psfhosted.org> |
| 2020-05-27 13:56:09 | eric.smith | link | issue40794 messages |
| 2020-05-27 13:56:09 | eric.smith | create | |
|