We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ce65c commit 7ffbbfcCopy full SHA for 7ffbbfc
structural-pattern-matching/optimizer.py
@@ -25,7 +25,9 @@ def sample_function():
25
def optimize(node):
26
match node:
27
case ast.Module(body, type_ignores):
28
- return ast.Module([optimize(child) for child in body], type_ignores)
+ return ast.Module(
29
+ [optimize(child) for child in body], type_ignores
30
+ )
31
case ast.FunctionDef():
32
return ast.FunctionDef(
33
name=node.name,
0 commit comments