8000 fix for #7516 · sphinx-doc/sphinx@84413ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 84413ed

Browse files
committed
fix for #7516
1 parent d08d4de commit 84413ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/ext/autodoc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,9 @@ def is_filtered_inherited_member(name: str) -> bool:
578578
isprivate = membername.startswith('_')
579579

580580
keep = False
581-
if getattr(member, '__sphinx_mock__', False):
581+
if safe_getattr(member, '__sphinx_mock__', False):
582582
# mocked module or object
583-
keep = False
583+
pass
584584
elif want_all and membername.startswith('__') and \
585585
membername.endswith('__') and len(membername) > 4:
586586
# special __methods__

0 commit comments

Comments
 (0)
0