Skip to content

Doc: explain Napoleon configuration for import aliases - #14642

Open
jdillard wants to merge 1 commit into
sphinx-doc:masterfrom
jdillard:ref-10151
Open

Doc: explain Napoleon configuration for import aliases#14642
jdillard wants to merge 1 commit into
sphinx-doc:masterfrom
jdillard:ref-10151

Conversation

@jdillard

Copy link
Copy Markdown
Member

Purpose

Explains how to translate import aliases used in docstring type definitions with napoleon_preprocess_types and napoleon_type_aliases. This adds an np.ndarray example and clarifies that Napoleon cannot infer module imports from docstring text.

The long-running discussion on #10151 attracted several affected users and proposed workarounds, indicating to me that the existing configuration was difficult to discover.

References

AI Disclosure

AI was used to investigate #10151 and draft the documentation improvement.

@jdillard jdillard added this to the 9.1.1 milestone Aug 25, 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.

1 participant