diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py index 76d4a4ff7ac..41d0f6cb68e 100644 --- a/sphinx/ext/autodoc/__init__.py +++ b/sphinx/ext/autodoc/__init__.py @@ -1032,8 +1032,11 @@ def generate( ) if ismock(self.object) and not docstrings: logger.warning( - __('A mocked object is detected: %r'), self.name, type='autodoc' - , subtype='mocked_object') + __('A mocked object is detected: %r'), + self.name, + type='autodoc', + subtype='mocked_object', + ) # check __module__ of object (for members not given explicitly) if check_module: