Skip to content

sphinx doc napoleon extension maintainer interest request #251

@svenevs

Description

@svenevs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions