python-attrs / attrs

Python Classes Without Boilerplate
https://www.attrs.org/
MIT License
5.3k stars 374 forks source link

[Feature Request] Mechanism for adding per-attribute docstrings to __slots__ #1294

Open bavalpey opened 5 months ago

bavalpey commented 5 months ago

Python 3.9 added the ability to generate per-attribute docstrings on attributes in slots that are parsed by inspect.getdoc() and help by passing a dict to __slots__.

Since attrs can create slots, it would be great if there was a mechanism to follow this behavior.