This commit is contained in:
Arne committed 2020-04-20 17:03:50 +02:00
1 parent d08d4de01f
commit 84413edd58
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__