Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
bzaczynski committed Aug 6, 2024
1 parent 63ce65c commit 7ffbbfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion structural-pattern-matching/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def sample_function():
def optimize(node):
match node:
case ast.Module(body, type_ignores):
return ast.Module([optimize(child) for child in body], type_ignores)
return ast.Module(
[optimize(child) for child in body], type_ignores
)
case ast.FunctionDef():
return ast.FunctionDef(
name=node.name,
Expand Down

0 comments on commit 7ffbbfc

Please sign in to comment.