I have a module, errors.py in which several global constants are defined (note: I understand that Python doesn\'t have constants, but I\'ve defined them by conv
errors.py
the following worked for me with Sphinx 2.4.4:
in foo.py :
foo.py
API_ERROR = 1 """int: Indicates some unknown error."""
then to document it:
.. automodule:: foo.py :members: