On Wed, Dec 08, 2021 at 11:50:55AM -0000, tmkehrenb...@gmail.com wrote: > 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."""
Perhaps I missed it, but I haven't seen anyone point out that this proposal has already been suggested and rejected more than twenty years ago: https://www.python.org/dev/peps/pep-0224/ -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/4QNMP4YCDNEROTVT3HRNRZVXMWAFXVGV/ Code of Conduct: http://python.org/psf/codeofconduct/