Skip to content

Commit 7448927

Browse files
committed
fix: Add autodoc configuration for decorated methods
1 parent e741529 commit 7448927

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,28 @@
133133
todo_include_todos = False
134134

135135

136+
137+
# -- Configuración adicional para autodoc --
138+
139+
# Configuración adicional para autodoc con decoradores
140+
autodoc_default_options = {
141+
"members": True,
142+
"member-order": "bysource",
143+
"special-members": "__init__",
144+
"undoc-members": True,
145+
"exclude-members": "__weakref__"
146+
}
147+
148+
# Importante para métodos decorados
149+
autodoc_inherit_docstrings = True
150+
151+
# Para preservar signatures con decoradores
152+
autodoc_preserve_defaults = True
153+
154+
# Configurar cómo se muestran los type hints
155+
autodoc_typehints = "signature"
156+
autodoc_typehints_format = "short"
157+
136158
# -- Options for HTML output ----------------------------------------------
137159

138160
# The theme to use for HTML and HTML Help pages. See the documentation for

0 commit comments

Comments
 (0)