How to use sphinx automodule and exposed functions in __init__

It works if you add an __all__ list to the __init__.py files. For example:

"""The __init__ docstr"""

__all__ = ['func1', 'func2']

from m1 import *
from m2 import *

Leave a Comment