Can I prevent sphinx numpydoc to split the Returns into two sections

36 Views Asked by At

When using sphinx numpydoc I document the Returns section.

Returns
-------
out: float
    A sentence about the return type

However, rendered this is split into two sections.

Returns:

    out - A sentence about the return type

Return type:

    float

How can I prevent this section to be split and only have a Returns section? Where the Returns section is rendered just as the Parameters section.

If this matters I am using the pydata sphinx theme.

0

There are 0 best solutions below