mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
fix_8522
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user