From a0c8ec2c1ad0e71622159b8f4d74f3e8a141c578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sat, 7 Dec 2024 20:25:47 -0500 Subject: [PATCH] DOC: Include special members in documentation Include the `__call__` and `__len__` special members when generating the documentation. --- docs/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 6826697d..2d30e874 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -234,6 +234,13 @@ apidoc_separate_modules = True apidoc_extra_args = ["--module-first", "-d 1", "-T"] + +# -- Options for autodoc extension ------------------------------------------- +autodoc_default_options = { + "special-members": "__call__, __len__", +} + + # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library.