Merge pull request #7520 from a-recknagel/3.0.x

fix for #7516
This commit is contained in:
Takeshi KOMIYA authored and GitHub committed 2020-04-21 00:55:10 +09:00
commit a65db71d79
1 file changed
+2 -2
+2 -2
View File
@@ -578,9 +578,9 @@ class Documenter:
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__