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

Make autoclasstree show all parents, not just direct ones #48

Closed
sobolevn opened this issue Sep 3, 2020 · 3 comments
Closed

Make autoclasstree show all parents, not just direct ones #48

sobolevn opened this issue Sep 3, 2020 · 3 comments

Comments

@sobolevn
Copy link

sobolevn commented Sep 3, 2020

Hi! Thanks a lot for a great library!

I am using for our dry-python/returns project with great success. But.
I would like to see something like:

.. autoclasstree: my.module.ClassName
  :full: true
@mgaitan
Copy link
Owner

mgaitan commented Sep 3, 2020

Hi @sobolevn, I'm glad you like this.

I guess what you need is doable iterating over inspect.getclasstree for each class. but I guess the whole feature needs to be refactored a bit to implement it.
Let me check it.

@mgaitan
Copy link
Owner

mgaitan commented Sep 4, 2020

@sobolevn I've just done a complete (much simpler) implementation that support pretty much your approach.
could you try it and give me some feedback?

in particular, I'm using the new mermaid's "classDiagram" instead the classic graph TD, and I don't know if to support "all the classes on the module" behaviour has any sense to be mantained.

This was referenced Sep 6, 2020
@sobolevn
Copy link
Author

sobolevn commented Sep 8, 2020

This might be closed I guess 🙂

@sobolevn sobolevn closed this as completed Sep 8, 2020
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