@@ -322,16 +322,14 @@ def extract_code_markdown_context_from_files(
322322 continue
323323 if code_context .strip ():
324324 if code_context_type != CodeContextType .HASHING :
325- code_context = (
326- add_needed_imports_from_module (
327- src_module_code = original_code ,
328- dst_module_code = code_context ,
329- src_path = file_path ,
330- dst_path = file_path ,
331- project_root = project_root_path ,
332- helper_functions = list (
333- helpers_of_fto .get (file_path , set ()) | helpers_of_helpers .get (file_path , set ())
334- ),
325+ code_context = add_needed_imports_from_module (
326+ src_module_code = original_code ,
327+ dst_module_code = code_context ,
328+ src_path = file_path ,
329+ dst_path = file_path ,
330+ project_root = project_root_path ,
331+ helper_functions = list (
332+ helpers_of_fto .get (file_path , set ()) | helpers_of_helpers .get (file_path , set ())
335333 ),
336334 )
337335 code_string_context = CodeString (code = code_context , file_path = file_path .relative_to (project_root_path ))
@@ -357,15 +355,13 @@ def extract_code_markdown_context_from_files(
357355
358356 if code_context .strip ():
359357 if code_context_type != CodeContextType .HASHING :
360- code_context = (
361- add_needed_imports_from_module (
362- src_module_code = original_code ,
363- dst_module_code = code_context ,
364- src_path = file_path ,
365- dst_path = file_path ,
366- project_root = project_root_path ,
367- helper_functions = list (helpers_of_helpers_no_overlap .get (file_path , set ())),
368- ),
358+ code_context = add_needed_imports_from_module (
359+ src_module_code = original_code ,
360+ dst_module_code = code_context ,
361+ src_path = file_path ,
362+ dst_path = file_path ,
363+ project_root = project_root_path ,
364+ helper_functions = list (helpers_of_helpers_no_overlap .get (file_path , set ())),
369365 )
370366 code_string_context = CodeString (code = code_context , file_path = file_path .relative_to (project_root_path ))
371367 code_context_markdown .code_strings .append (code_string_context )
0 commit comments