Author sir-sigurd
Recipients sir-sigurd
Date 2020-07-28.04:39:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595911199.09.0.446200648486.issue41415@roundup.psfhosted.org>
In-reply-to
Content
In [191]: import dataclasses, pydoc

In [192]: @dataclass
     ...: class C:
     ...:     pass
     ...:

In [193]: print(pydoc.render_doc(C))
Python Library Documentation: class C in module __main__

class C(builtins.object)
 |  C() -> None
 |
 |  C()
 |
 |  Methods defined here:
 |
 ....


It's duplicated because dataclass __doc__ defaults to signature:
 
In [195]: C.__doc__                                  
Out[195]: 'C()'
History
Date User Action Args
2020-07-28 04:39:59sir-sigurdsetrecipients: + sir-sigurd
2020-07-28 04:39:59sir-sigurdsetmessageid: <1595911199.09.0.446200648486.issue41415@roundup.psfhosted.org>
2020-07-28 04:39:59sir-sigurdlinkissue41415 messages
2020-07-28 04:39:58sir-sigurdcreate