Skip to content

Fix autodoc processing - #14592

Closed
larsoner wants to merge 3 commits into
sphinx-doc:masterfrom
larsoner:fix
Closed

Fix autodoc processing#14592
larsoner wants to merge 3 commits into
sphinx-doc:masterfrom
larsoner:fix

Conversation

@larsoner

@larsoner larsoner commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix autosummary regression likely introduced in #13955 , observed while working on making SciPy's docs build with Sphinx 9 (hit this in the fortran-documenting code; working in scipy/scipy#25867 on this branch).

References

Related to #14576 (same error mechanism), but I couldn't reproduce their bug before (or after) these changes

AI Disclosure

Bug discovered and changes drafted with Claude Opus 5. Fix confirmed to work in SciPy local builds (at least with latest unreleased NumpyDoc, etc.).

@larsoner larsoner changed the title Fix autosummary processing Fix autodoc processing Aug 9, 2026
@jdillard

Copy link
Copy Markdown
Member

I noticed that #14578 addresses the same IndexError and includes tests for several object types. Do you think any tests or context should be consolidated between the two?

@larsoner

Copy link
Copy Markdown
Contributor Author

Ahh I didn't see that one. Yeah I think that's a duplicate and theirs is slightly better. This one has some tests that could be added over there. Happy to close this. Or if they don't get around to making any suggested changes, happy to take their slightly cleaner fix and put it here and iterate as needed!

@jdillard

Copy link
Copy Markdown
Member

Thanks! The built-in test has now been ported to #14578. I think we can close this one in favor of #14578, feel free to give a review if you want.

@jdillard jdillard closed this Aug 22, 2026
@larsoner
larsoner deleted the fix branch August 22, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autodoc: IndexError formatting signature for callable data object with annotated class variable

2 participants