Skip to content

Commit e84e376

Browse files
Adam Dobrawyclaude
andcommitted
Exclude internal type attribute from Sphinx autodoc
The task class `type` attributes conflict with the builtin `type` used in type annotations, causing an ambiguous cross-reference warning that fails the -W docs build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fa941d9 commit e84e376

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"sphinx.ext.viewcode",
4545
]
4646

47+
autodoc_default_options = {
48+
"exclude-members": "type",
49+
}
50+
4751
# Add any paths that contain templates here, relative to this directory.
4852
templates_path = ["_templates"]
4953

0 commit comments

Comments
 (0)