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 6967fcb commit 8248c8eCopy full SHA for 8248c8e
codeflash/optimization/function_optimizer.py
@@ -605,7 +605,7 @@ def reformat_code_and_helpers(
605
new_code = sort_imports(new_code)
606
607
new_helper_code: dict[Path, str] = {}
608
- helper_functions_paths = {hf.source_code for hf in helper_functions}
+ helper_functions_paths = {hf.file_path for hf in helper_functions}
609
for module_abspath in helper_functions_paths:
610
formatted_helper_code = format_code(self.args.formatter_cmds, module_abspath)
611
if should_sort_imports:
0 commit comments