Skip to content

Commit fa09853

Browse files
committed
Update instrument_existing_tests.py
1 parent ed9e9b3 commit fa09853

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

codeflash/code_utils/instrument_existing_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
199199
def visit_AsyncFunctionDef(
200200
self, node: ast.AsyncFunctionDef, test_class_name: str | None = None
201201
) -> ast.AsyncFunctionDef:
202-
"""Handle async function definitions by converting to sync and back."""
203-
# Convert to sync FunctionDef, process it, then convert back
204202
sync_node = ast.FunctionDef(
205203
name=node.name,
206204
args=node.args,
@@ -211,7 +209,6 @@ def visit_AsyncFunctionDef(
211209
col_offset=node.col_offset if hasattr(node, "col_offset") else 0,
212210
)
213211
processed_sync = self.visit_FunctionDef(sync_node, test_class_name)
214-
# Convert back to AsyncFunctionDef
215212
return ast.AsyncFunctionDef(
216213
name=processed_sync.name,
217214
args=processed_sync.args,

0 commit comments

Comments
 (0)