Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement :inherited-members: option for autoclass #180

Open
rdzman opened this issue Apr 17, 2023 · 1 comment
Open

implement :inherited-members: option for autoclass #180

rdzman opened this issue Apr 17, 2023 · 1 comment

Comments

@rdzman
Copy link
Contributor

rdzman commented Apr 17, 2023

Currently, attempting to use :inherited-members: with the autoclass directive results in a fatal error.

Exception occurred:
  File "... sphinxcontrib/mat_documenters.py", line 247, in get_object_members
    members = inspect.get_members(self.object, attr_getter=self.get_attr)
AttributeError: module 'inspect' has no attribute 'get_members'

Initially I thought that the inheritance information was not included in the parsed objects, but it seems it is there and we would just need to implement the code to look up the inherited members.

Looks like this issue was brought up a few years ago in #98. Not sure if anything has changed since then to make it easier.

@joeced
Copy link
Collaborator

joeced commented Apr 19, 2023

It's the same issue as ever. Being based on the Python autodoc feature, we "inherited" a lot of features from that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants