Resolve lint errors from Ruff 0.0.261

This commit is contained in:
Adam Turner
2023-04-05 14:18:31 +01:00
parent 2932bacac4
commit 52a099b7ec
4 changed files with 5 additions and 12 deletions

View File

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