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 bdb11d0 commit b4e9ab7Copy full SHA for b4e9ab7
codeflash/code_utils/code_extractor.py
@@ -332,8 +332,9 @@ def add_needed_imports_from_module(
332
for mod, obj_seq in gatherer.object_mapping.items():
333
for obj in obj_seq:
334
if (
335
- f"{mod}.{obj}" in helper_functions_fqn or dst_context.full_module_name is mod
336
- ): # avoid circular imports
+ f"{mod}.{obj}" in helper_functions_fqn
+ or dst_context.full_module_name is mod # avoid circular imports
337
+ ):
338
continue # Skip adding imports for helper functions already in the context
339
AddImportsVisitor.add_needed_import(dst_context, mod, obj)
340
RemoveImportsVisitor.remove_unused_import(dst_context, mod, obj)
0 commit comments