-
-
Notifications
You must be signed in to change notification settings - Fork 170
Description
Sphinx is gaining the ability to automatically populate type hints for python code. sphinx-doc/sphinx#7018 will succeed in enabling it for parameters, but there is a hiccup with the Returns
clauses. It will be undocumented until Sphinx 3.0. I will be opening an issue on the Sphinx issue tracker to begin discussions about how we can approach fixing things, but we want to be careful not to do anything NumPy would not want done.
The proposed fix introduces a config var that defaults to False
(meaning by default, no change) that relaxes the need to annotate the return type in the docstring:
Returns
-------
bool
Some description of the return type.
will now be allowed to be
Returns
-------
Some description of the return type.
The details of why are described in the comments in the linked PR, but we would like to consolidate discussion to a new sphinx issue.
Are there any specific maintainers that I can CC via an @ mention to guide what we should do how?
Thanks!