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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/F2QJ3Q3HFX5VR7MG37FXET5JJ2XVNKSF/ Code of Conduct: http://python.org/psf/codeofconduct/
