Am 02.01.21 um 01:44 schrieb Guido van Rossum:
How do we avoid having the docstrings in two places? Large communities
(e.g. Jupyter notebook and IPython users) rely on docstrings available
at runtime. There should be a tool to update the docstrings in stubs
before I could recommend duplicating them there.
Even for stubs corresponding to extension modules we would need such a
tool, since those also typically expose docstrings (defined in the C
code) at runtime.
Agreed. Having to maintain two (identical) docstrings will not work. I
have set aside some time next week to work on typing-related things and
will see whether I can cook up something.
- Sebastian
_______________________________________________
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/32JAZWT52D647NET2HPGASBTQPDXLQ25/
Code of Conduct: http://python.org/psf/codeofconduct/