mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Resolve lint errors from Ruff 0.0.261
This commit is contained in:
@@ -323,8 +323,7 @@ class TextWrapper(textwrap.TextWrapper):
|
||||
if w == 1:
|
||||
chunks.extend(split(''.join(g)))
|
||||
else:
|
||||
# Ruff false positive: https://github.com/charliermarsh/ruff/issues/3829
|
||||
chunks.extend(list(g)) # NoQA: B031
|
||||
chunks.extend(list(g))
|
||||
return chunks
|
||||
|
||||
def _handle_long_word(self, reversed_chunks: list[str], cur_line: list[str],
|
||||
|
||||
Reference in New Issue
Block a user