Skip to content

Commit 820d391

Browse files
committed
Use the fullname if the object cannot be imported
1 parent 23c30e4 commit 820d391

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autodocsumm/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ def get_items_from_documenters(self, documenters):
617617
documenter.real_modname = documenter.get_real_modname()
618618
real_name = documenter.fullname
619619
display_name = documenter.object_name
620+
if display_name is None: # for instance attributes
621+
display_name = real_name.split('.')[-1]
620622
if check_module and not documenter.check_module():
621623
continue
622624

0 commit comments

Comments
 (0)