sphinx-doc/sphinx

Trailing underscores in parameter names are dropped

Open

#519 aperta il 2 gen 2015

Vedi su GitHub
 (14 commenti) (0 reazioni) (0 assegnatari)Python (1985 fork)batch import
builder:htmlhelp wantedtype:bug

Metriche repository

Star
 (5625 star)
Metriche merge PR
 (Merge medio 13g 10h) (8 PR mergiate in 30 g)

Descrizione

When documenting Python parameters with trailing underscores:

#!python

def example(str_):
    """Notice that the parameter `str_` has a trailing underscore.

    :param str_: Unfortunately, it gets dropped in the resulting HTML.
    """

The resulting HTML documentation completely omits the trailing underscore.


Guida contributor