sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 45 forks source link

'MatModule' object has no attribute '__bases__' #123

Closed cunyap closed 3 years ago

cunyap commented 3 years ago

Hi,

I am trying to understand why I get the following error:

line 726, in make_baseclass_links obj_bases = obj.bases AttributeError: 'MatModule' object has no attribute 'bases'

if I add the following line to .conf.py

autodoc_default_options = {'members': True, 'show-inheritance': True}

If I have this line commented out and in my doc source files something like

.. automodule:: +MyToolbox.@MyClass :members: :show-inheritance:

I do not get this error.

Any idea what might be the cause?

joeced commented 3 years ago

You should do somthing like this instead

.. automodule:: +MyToolbox

.. autoclass::myclass :members: :show-inheritance:

joeced commented 3 years ago

Assuming this was the solution.

cunyap commented 3 years ago

Yes indeed. Thanks again for the fast help!