Installation

python3 -m pip install default_values --user

Enable default_values by adding the following to the extensions variable in your conf.py:

extensions = [
    ...
    'sphinx.ext.autodoc',
    'sphinxcontrib.default_values',
    ]

For more information see https://www.sphinx-doc.org/en/master/usage/extensions#third-party-extensions .