Why is sphinx automodule not showing any module members?
If your class is imported into __init__.py
you may also need :imported-members:
like so:
.. automodule:: myproject
:imported-members:
:members:
:undoc-members:
:show-inheritance:
The main
module is in the myproject
package. In order to document main
, you need the following:
.. automodule:: myproject.main
:members: