sphinx-doc/sphinx

Trailing underscores in parameter names are dropped

Open

#519 ouverte le 2 janv. 2015

Voir sur GitHub
 (14 commentaires) (0 réactions) (0 assignés)Python (1 985 forks)batch import
builder:htmlhelp wantedtype:bug

Métriques du dépôt

Stars
 (5 625 stars)
Métriques de merge PR
 (Merge moyen 13j 10h) (8 PRs mergées en 30 j)

Description

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.


Guide contributeur