Update autodoc conf to prevent expansion of constants

This commit is contained in:
Jeremy Cohen 2022-08-05 13:03:04 +01:00
parent a68ea222ad
commit 9912a0788e

View File

@ -61,6 +61,9 @@ templates_path = ["_templates"]
# This pattern also affects html_static_path and html_extra_path. # This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".pytest_cache"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".pytest_cache"]
# Preserve default values, don't expand them - prevents replacing default
# values with constants or object representations including a memory address
autodoc_preserve_defaults = True
# -- Options for HTML output ------------------------------------------------- # -- Options for HTML output -------------------------------------------------