Apply refurb/ruff rule FURB125 (#11841)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Dimitri Papadopoulos Orfanos
2024-01-04 04:16:38 +01:00
committed by GitHub
parent 90d0d7eced
commit 877b2c75f2
2 changed files with 1 additions and 2 deletions

View File

@@ -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:
"""

View File

@@ -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