Skip to content

Commit 95eaecf

Browse files
committed
use the Documenter.objpath attribute
since this is also what import_object uses (see https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/autodoc/importer.py)
1 parent 479efcb commit 95eaecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autodocsumm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def get_items_from_documenters(self, documenters):
618618
real_name = documenter.fullname
619619
display_name = documenter.object_name
620620
if display_name is None: # for instance attributes
621-
display_name = real_name.split('.')[-1]
621+
display_name = documenter.objpath[-1]
622622
if check_module and not documenter.check_module():
623623
continue
624624

0 commit comments

Comments
 (0)