Skip to content

Fix Napoleon handling of exception-raising attributes - #14574

Open
jdillard wants to merge 2 commits into
sphinx-doc:masterfrom
jdillard:fix-14524
Open

Fix Napoleon handling of exception-raising attributes#14574
jdillard wants to merge 2 commits into
sphinx-doc:masterfrom
jdillard:fix-14524

Conversation

@jdillard

Copy link
Copy Markdown
Member

Purpose

Use Sphinx’s defensive safe_getattr when Napoleon inspects member documentation and qualified names.

Some proxy objects, including Pydantic’s MockValSer, raise exceptions other than AttributeError for missing attributes. This caused Napoleon’s autodoc-skip-member handler to fail while processing BaseModel members.

References

Fixes #14524

AI Disclosure

I used AI to determine the issue and work through the fix

@jdillard jdillard added this to the 9.1.1 milestone Aug 13, 2026
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-skip-member throws exception -- Pydantic

2 participants