How To Use Sphinx Automodule And Exposed Functions In __init__
I have a folder structure that looks like: project/ mymodule/ __init__.py m1.py m2.py sub1/ __init__.py s1.py
Solution 1:
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 *
Post a Comment for "How To Use Sphinx Automodule And Exposed Functions In __init__"