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 OrfanosandAdam Turner authored and GitHub committed 2024-01-04 03:16:38 +00:00
1 parent 90d0d7eced
commit 877b2c75f2
2 files changed
+1 -2

No files matched your search

+1 -1
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:
"""
-1
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