Skip to content

Extract autodoc importing to module-level functions#13773

Merged
AA-Turner merged 37 commits intosphinx-doc:masterfrom
AA-Turner:autodoc/importer
Jul 28, 2025
Merged

Extract autodoc importing to module-level functions#13773
AA-Turner merged 37 commits intosphinx-doc:masterfrom
AA-Turner:autodoc/importer

Conversation

@AA-Turner
Copy link
Member

Purpose

The import functions are now simple functions that take a module and path to import and return an object representing the successful import. Previously, substantial amounts of state were implicit, or set directly onto the Documenter subclass. This should help with testing in the future, as autodoc importing no longer requires any of the core Sphinx classes.

References

@AA-Turner AA-Turner merged commit 00d5f48 into sphinx-doc:master Jul 28, 2025
28 checks passed
@AA-Turner AA-Turner deleted the autodoc/importer branch July 28, 2025 02:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2025
@AA-Turner AA-Turner added this to the 9.0.0 milestone Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant