-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
extensions:autodoctype:enhancementenhance or introduce a new featureenhance or introduce a new feature
Milestone
Description
I'm using Sphinx's autodoc feature to document my API.
Example:
#!python
DEFAULT_OPTION = 'default'
def do_something(msg, option=DEFAULT_OPTION):
print msg
The generated documentation now shows the following signature:
do_something(msg, option='default')
It would be nice if there was a way to tell Sphinx to keep the name of the constant value, i.e.
do_something(msg, option=DEFAULT_OPTION)
At the moment the only alternative is to write all signature by hand again.
- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/759
- Originally reported by: Sebastian Rahlf
- Originally created at: 2011-08-31T11:29:50.797
dinya, ojob, gustavi, OverLordGoldDragon and MarkusPiotrowski
Metadata
Metadata
Assignees
Labels
extensions:autodoctype:enhancementenhance or introduce a new featureenhance or introduce a new feature