[issue42414] unable to document fields of dataclass

Eric V. Smith report at bugs.python.org
Fri Nov 20 15:09:34 EST 2020


Eric V. Smith <eric at trueblade.com> added the comment:

@property has a place to attach the docstring, dataclasses in general do not. I wouldn't want to add a descriptor just to have the ability to add a docstring. There are performance issues involved, and I'm sure some corner cases where functionality would change.

Maybe if you bring this up on python-ideas you can get some more ideas.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42414>
_______________________________________


More information about the Python-bugs-list mailing list