File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99from codeflash .languages .python .context .unused_definition_remover import detect_unused_helper_functions
1010from codeflash .models .function_types import FunctionParent
1111from codeflash .models .models import CodeStringsMarkdown
12- from codeflash .optimization . function_optimizer import FunctionOptimizer
12+ from codeflash .languages . python . function_optimizer import PythonFunctionOptimizer
1313from codeflash .verification .verification_utils import TestConfig
1414
1515ORIGINAL_SOURCE = '''\
@@ -649,7 +649,7 @@ def run_replacement(temp_project):
649649 parents = [FunctionParent (name = "PSBaseParser" , type = "ClassDef" )],
650650 )
651651
652- optimizer = FunctionOptimizer (
652+ optimizer = PythonFunctionOptimizer (
653653 function_to_optimize = function_to_optimize ,
654654 test_cfg = test_cfg ,
655655 function_to_optimize_source_code = source_file .read_text (encoding = "utf-8" ),
@@ -715,7 +715,7 @@ def test_detect_unused_helpers_handles_attribute_refs(temp_project):
715715 parents = [FunctionParent (name = "PSBaseParser" , type = "ClassDef" )],
716716 )
717717
718- optimizer = FunctionOptimizer (
718+ optimizer = PythonFunctionOptimizer (
719719 function_to_optimize = function_to_optimize ,
720720 test_cfg = test_cfg ,
721721 function_to_optimize_source_code = source_file .read_text (encoding = "utf-8" ),
You can’t perform that action at this time.
0 commit comments