Skip to content

Commit

Permalink
Use autodoc_preserve_defaults = True
Browse files Browse the repository at this point in the history
See sphinx-doc/sphinx#8771

autodoc_preserve_defaults was new in Sphinx 3.5
  • Loading branch information
peterjc authored and JoaoRodrigues committed Jun 3, 2021
1 parent 4defb75 commit faf4ab1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis-tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ deps =
rdflib
reportlab
scipy
sphinx>=1.8.0
sphinx>=3.5.0
numpydoc==1.0.0
pygments
sphinx_rtd_theme
Expand Down
7 changes: 5 additions & 2 deletions Doc/api/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
needs_sphinx = "1.8"
needs_sphinx = "3.5"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -110,6 +109,10 @@
"exclude-members": "__dict__,__weakref__,__module__",
}

# Experimental feature to preserve the default argument values of
# functions in source code and keep them not evaluated for readability:
autodoc_preserve_defaults = True

# To avoid import errors.
autodoc_mock_imports = ["MySQLdb", "Bio.Restriction.Restriction"]
if version > "1.77":
Expand Down

0 comments on commit faf4ab1

Please sign in to comment.