This commit is contained in:
Artyom Kaltovich 2020-12-07 14:31:10 +03:00
parent 9cf2826491
commit 6fdbce933b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,5 @@
Release 3.4.0 (in development)
==============================
Dependencies
------------
@ -98,6 +97,8 @@ Features added
Bugs fixed
----------
* #8522: ``__bool__`` method isn't called now by autodoc module, so it won't lead to
side effect or direct failure in case it generate an error.
Testing
--------

View File

@ -716,7 +716,7 @@ class Documenter:
isprivate = membername.startswith('_')
keep = False
if safe_getattr(member, '__sphinx_mock__', False):
if safe_getattr(member, '__sphinx_mock__', None) is not None:
# mocked module or object
pass
elif self.options.exclude_members and membername in self.options.exclude_members: