You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# becuase of an "edge case" where the optimized code intoduced a new import and a global assignment using that import
422
423
# and that import wasn't used before, so it was ignored when calling AddImportsVisitor.add_needed_import inside replace_functions_and_add_imports (because the global assignment wasn't added yet)
423
424
# this was added at https://github.com/codeflash-ai/codeflash/pull/448
preexisting_objects=set(), # Empty set since we're reverting
539
539
project_root_path=project_root,
540
+
global_assignments_added_before=True, # since we revert helpers functions after applying the optimization, we know that the file already has global assignments added, otherwise they would be added twice.
0 commit comments