Skip to content

Commit 7ffbbfc

Browse files
committed
Reformat code
1 parent 63ce65c commit 7ffbbfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

structural-pattern-matching/optimizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def sample_function():
2525
def optimize(node):
2626
match node:
2727
case ast.Module(body, type_ignores):
28-
return ast.Module([optimize(child) for child in body], type_ignores)
28+
return ast.Module(
29+
[optimize(child) for child in body], type_ignores
30+
)
2931
case ast.FunctionDef():
3032
return ast.FunctionDef(
3133
name=node.name,

0 commit comments

Comments
 (0)