mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply refurb/ruff rule FURB125 (#11841)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
90d0d7eced
commit
877b2c75f2
@@ -118,7 +118,7 @@ class ObjectDescription(SphinxDirective, Generic[ObjDescT]):
|
||||
|
||||
*name* is whatever :meth:`handle_signature()` returned.
|
||||
"""
|
||||
return # do nothing by default
|
||||
pass # do nothing by default
|
||||
|
||||
def before_content(self) -> None:
|
||||
"""
|
||||
|
||||
@@ -508,7 +508,6 @@ class IndexBuilder:
|
||||
word_store.title_words.extend(split(title))
|
||||
for child in node.children:
|
||||
_visit_nodes(child)
|
||||
return
|
||||
|
||||
word_store = WordStore()
|
||||
split = self.lang.split
|
||||
|
||||
Reference in New Issue
Block a user