A few weeks ago, I proposed on this mailing list to write docstrings for
class attributes like this:
@dataclass
class A:
x: int
"""Docstring for x."""
The main criticism, I think, was that it is weird to have the docstring
*below* the attribute.
To solve this problem, I propose to introd
Hi all,
I have seen discussion of docstrings for class attributes before on this
list, but not with this exact proposal.
My motivation is that I have a dataclass for which I want to write
docstrings that can be accessed at runtime. In my specific case, the
docstrings would be used to create a he