From 9912a0788e9e2c1c71d2d8a6fbb3747673cc8f50 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Fri, 5 Aug 2022 13:03:04 +0100 Subject: [PATCH] Update autodoc conf to prevent expansion of constants --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 73dedee..816ac4a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,6 +61,9 @@ templates_path = ["_templates"] # This pattern also affects html_static_path and html_extra_path. 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 -------------------------------------------------