style: Format code with linter

This commit is contained in:
Paul Gauthier (aider) 2024-11-19 12:34:47 -08:00
parent 7b98db2f7d
commit 10192296fe

View file

@ -445,9 +445,9 @@ class InputOutput:
multiline_input = True multiline_input = True
# Check for optional tag after opening { # Check for optional tag after opening {
if len(line) > 1: if len(line) > 1:
tag = ''.join(c for c in line[1:] if c.isalnum()) tag = "".join(c for c in line[1:] if c.isalnum())
multiline_tag = tag multiline_tag = tag
inp += line[len(tag)+1:] + "\n" inp += line[len(tag) + 1 :] + "\n"
else: else:
multiline_tag = None multiline_tag = None
inp += line[1:] + "\n" inp += line[1:] + "\n"
@ -456,7 +456,7 @@ class InputOutput:
if multiline_tag: if multiline_tag:
# Check if the line ends with tag} # Check if the line ends with tag}
if line.endswith(f"{multiline_tag}}}"): if line.endswith(f"{multiline_tag}}}"):
inp += line[:-len(multiline_tag)-1] + "\n" inp += line[: -len(multiline_tag) - 1] + "\n"
break break
else: else:
inp += line + "\n" inp += line + "\n"