I'm using Sphinx's autodoc feature to document my API.
Example:
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')
How can I tell Sphinx to keep the name of the constant value i.e.
do_something(msg, option=DEFAULT_OPTION)
?
Is there an option I have overlooked? If at all possible, I'd like NOT to write all signature by hand again.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…