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

Inherited attributes are ignored #272

Open
timokau opened this issue Mar 22, 2021 · 3 comments
Open

Inherited attributes are ignored #272

timokau opened this issue Mar 22, 2021 · 3 comments
Labels
Bug Good First Issue Good issue for first time contributors Language: Python

Comments

@timokau
Copy link

timokau commented Mar 22, 2021

AutoAPI currently does not show inherited attributes, even if the :inherited-members: option is set. Previously discussed here: #183 (comment)

CC @AWhetter

@AWhetter
Copy link
Collaborator

To any newcomers looking to resolve this issue, the parser currently retrieves the attributes of base classes in this for loop:

for child in base.get_children():

The loop will need to check if it is looking at the __init__ function of a base class and if it is then look at the children of the function for attributes that get assigned to.

For the documentation of attributes to be inherited, the attribute itself will need a docstring. We cannot parse out the attribute documentation from an attributes list in the class docstring.

@amirhessam88
Copy link

is there any update on this issue ?

@amirhessam88
Copy link

amirhessam88 commented Sep 30, 2022

I think this issue is fixed now? or at least I dont see the problem anymore on my end. The most important point is to avoid having circular imports when you inherit from another class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Good First Issue Good issue for first time contributors Language: Python
Projects
None yet
Development

No branches or pull requests

3 participants