Files
sphinx/doc
Matt Wozniski 4785f32ddf Add autodoc_typehint_undoc option
Previously, if autodoc_typehints="description", a :type: field would be
added for every parameter and return type appearing in the annotation,
including **kwargs and underscore-prefixed parameters that are meant to
be private, as well as None return types.

This commit introduces a new option, "autodoc_typehint_undoc".  By
default this option is True, requesting the old behavior. By setting
this option to False, :type: and :rtype: fields will only be added for
annotated parameters or return types if there is already a corresponding
:param: or :return: field, to put users in control over whether a given
parameter is documented or not.
2021-03-27 14:54:37 -04:00
..
2021-03-22 23:51:54 +09:00
2021-03-27 14:54:37 -04:00
2008-06-23 12:35:22 +00:00
2020-05-30 15:38:12 +01:00