Skip to content

Commit

Permalink
Make flake8 pass when run with Python 3.12 (#4050)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Nov 18, 2023
1 parent 85b1c71 commit c4cd200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def stringify_ast(node: ast.AST, depth: int = 0) -> Iterator[str]:
except AttributeError:
continue

yield f"{' ' * (depth+1)}{field}="
yield f"{' ' * (depth + 1)}{field}="

if isinstance(value, list):
for item in value:
Expand Down Expand Up @@ -211,6 +211,6 @@ def stringify_ast(node: ast.AST, depth: int = 0) -> Iterator[str]:
normalized = value.rstrip()
else:
normalized = value
yield f"{' ' * (depth+2)}{normalized!r}, # {value.__class__.__name__}"
yield f"{' ' * (depth + 2)}{normalized!r}, # {value.__class__.__name__}"

yield f"{' ' * depth}) # /{node.__class__.__name__}"

0 comments on commit c4cd200

Please sign in to comment.