Skip to content

Commit

Permalink
Remove redundant 'fmt: skip' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 5, 2025
1 parent 0e8bff8 commit 531436b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/search/zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def stem(self, word: str) -> str:
stemmed = self.stemmer.stemWord(word.lower())
should_not_be_stemmed = (
len(word) >= 3 > len(stemmed) and word in self.latin_terms
) # fmt: skip
)
if should_not_be_stemmed:
return word.lower()
return stemmed
2 changes: 1 addition & 1 deletion sphinx/writers/html5.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def depart_desc_parameter(self, node: Element) -> None:
next_is_required = (
not is_last_group
and self.list_is_required_param[self.param_group_index + 1]
) # fmt: skip
)
opt_param_left_at_level = self.params_left_at_level > 0
if (
opt_param_left_at_level
Expand Down

0 comments on commit 531436b

Please sign in to comment.