Skip to content

Commit 99b4300

Browse files
committed
pre-commit
1 parent f61c139 commit 99b4300

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codeflash/code_utils/static_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ def has_typed_parameters(node: ast.FunctionDef | ast.AsyncFunctionDef, parents:
158158
return all(arg.annotation for arg in node.args.args)
159159
if kind in [FunctionKind.CLASS_METHOD, FunctionKind.INSTANCE_METHOD]:
160160
return all(arg.annotation for arg in node.args.args[1:])
161-
return False
161+
return False

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
diff_length,
3636
file_name_from_test_module_name,
3737
get_run_tmp_file,
38-
has_any_async_functions,
3938
module_name_from_file_path,
4039
restore_conftest,
4140
)
@@ -1688,4 +1687,4 @@ def line_profiler_step(
16881687
logger.warning(
16891688
f"Couldn't run line profiler for original function {self.function_to_optimize.function_name}"
16901689
)
1691-
return line_profile_results
1690+
return line_profile_results

0 commit comments

Comments
 (0)