Skip to content

Commit

Permalink
Merge pull request #7520 from a-recknagel/3.0.x
Browse files Browse the repository at this point in the history
fix for #7516
  • Loading branch information
tk0miya committed Apr 20, 2020
2 parents d08d4de + 84413ed commit a65db71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/ext/autodoc/__init__.py
Expand Up @@ -578,9 +578,9 @@ def is_filtered_inherited_member(name: str) -> bool:
isprivate = membername.startswith('_')

keep = False
if getattr(member, '__sphinx_mock__', False):
if safe_getattr(member, '__sphinx_mock__', False):
# mocked module or object
keep = False
pass
elif want_all and membername.startswith('__') and \
membername.endswith('__') and len(membername) > 4:
# special __methods__
Expand Down

0 comments on commit a65db71

Please sign in to comment.