Stephen J. Turnbull wrote: > @standard_class_docstring_parser > class A: > """ > Class docstring. > x: Docstring for x > y: Docstring for y > """ > x: int > y: bool = True
Oh, this is actually a nice idea. You could have a decorator that parses reST and then according to some conventions extracts the attribute docstrings. I think I will try to write something like that. Thomas _______________________________________________ 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/F2QJ3Q3HFX5VR7MG37FXET5JJ2XVNKSF/ Code of Conduct: http://python.org/psf/codeofconduct/