Skip to content

Commit 1fe7bd1

Browse files
committed
update type
1 parent a65f026 commit 1fe7bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __init__(
198198
test_cfg: TestConfig,
199199
function_to_optimize_source_code: str = "",
200200
function_to_tests: dict[str, set[FunctionCalledInTest]] | None = None,
201-
function_to_optimize_ast: ast.FunctionDef | None = None,
201+
function_to_optimize_ast: ast.FunctionDef | ast.AsyncFunctionDef | None = None,
202202
aiservice_client: AiServiceClient | None = None,
203203
function_benchmark_timings: dict[BenchmarkKey, int] | None = None,
204204
total_benchmark_timings: dict[BenchmarkKey, int] | None = None,

0 commit comments

Comments
 (0)