Overriding Sphinx autodoc “Alias of” for import of private class?
问题 I have a Python package that I am attempting to document with sphinx-autodoc. My python package has an __init__.py file that imports a class out from a submodule to make it accessible at the package level. from a.b.c.d import _Foo as Foo __all__ = ["Foo"] If I do this, my (html) documentation is as follows: a.b.c package Submodules a.b.c.d module [snip documentation of irrelevant public classes within the a.b.c.d module] Module contents The c module. a.b.c. Foo alias of _Foo Not super useful