Sujet : Re: Synchronise annotations -> docstring
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 04. Sep 2024, 00:21:46
Autres entêtes
Organisation : Stefan Ram
Message-ID : <consistency-20240903232108@ram.dialup.fu-berlin.de>
References : 1
Albert-Jan Roskam <
sjeik_appie@hotmail.com> wrote or quoted:
Are there any tools that check whether type annotations and Numpydoc
strings are consistent?
According to one webpage, the "sphinx-autodoc-typehints" extension
lets you roll with Python 3 annotations for documenting the types
of arguments and return values of functions.
So, you'd have a "single source of truth" again to keep everything
chill and straightforward.