mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix_8522
This commit is contained in:
parent
9cf2826491
commit
6fdbce933b
3
CHANGES
3
CHANGES
@ -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
|
||||
--------
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user