Since version 4.0 of Sphinx there is a new configuration option (autodoc_preserve_defaults
). Setting
autodoc_preserve_defaults = True
in your conf.py
will preserve the default values as they are in the source code.
More Related Contents:
- Sphinx’s autodoc’s automodule having apparently no effect
- Sphinx autodoc is not automatic enough
- Override function declaration in autodoc for sphinx
- Sphinx cannot find my python files. Says ‘no module named …’
- Automatically document all modules recursively with Sphinx autodoc
- sphinx-build fail – autodoc can’t import/find module
- How would I cross-reference a function generated by autodoc in Sphinx?
- How do I document classes without the module name?
- Can sphinx link to documents that are not located in directories below the root document?
- How do I document classes imported from other modules – hence without the declaration module’s name?
- How to add custom css file to Sphinx?
- How do I output a config value in a Sphinx .rst file?
- Keeping the API updated in Sphinx
- How to preserve line breaks when generating python docs using sphinx
- How to force Sphinx to use Python 3.x interpreter
- How to document Python packages using Sphinx
- How to use sphinx automodule and exposed functions in __init__
- Customize sphinxdoc theme
- How to express multiple types for a single parameter or a return value in docstrings that are processed by Sphinx?
- threading.Timer – repeat function every ‘n’ seconds
- recursive iteration through nested json for specific key in python
- Get __name__ of calling function’s module in Python
- Pyspark: explode json in column to multiple columns
- split a multi-page pdf file into multiple pdf files with python?
- What is a good way to do countif in Python
- How do I get the snake to grow and chain the movement of the snake’s body?
- Invalid syntax (SyntaxError) in except handler when using comma
- Easier way to enable verbose logging
- Python object attributes – methodology for access
- How to properly report an exit status in batch?