[issue38401] Make dataclass attribute docstrings accessible

Václav Brožík report at bugs.python.org
Fri Nov 5 05:19:09 EDT 2021


Václav Brožík <pabouk at gmail.com> added the comment:

Note that John Parejko is right that  the active PEP 257 clearly specifies attribute docstrings. Here is the excerpt:

String literals occurring immediately after a simple assignment at the top level of a module, class, or __init__ method are called "attribute docstrings".

They are being supported by various software like Sphinx, vim, VS Codes's Pylance.

----------
nosy: +pabouk

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


More information about the Python-bugs-list mailing list