mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-17 21:25:35 +00:00
Fix inheritance diagram from module
This commit is contained in:
parent
9a5f22d7d6
commit
f986f02105
@ -52,7 +52,7 @@ def _import_class(name, currmodule):
|
||||
|
||||
if isinstance(target, astroid.Module):
|
||||
classes = []
|
||||
for child in target.children:
|
||||
for child in target.get_children():
|
||||
if isinstance(child, astroid.ClassDef):
|
||||
classes.append(child)
|
||||
return classes
|
||||
|
Loading…
Reference in New Issue
Block a user