Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 19, 2025
1 parent 7833056 commit 50027ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sphinx/ext/autodoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 50027ca

Please sign in to comment.