Skip to content

Commit

Permalink
Fixing an issue with cycled imports detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtm98 committed Oct 11, 2024
1 parent 3cc174f commit 5ef8cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jac/jaclang/compiler/passes/main/import_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __process_import_from(self, imp_node: ast.Import) -> None:
)

if imported_mod:
parent: Optional[ast.Module] = imported_mod.parent
parent: Optional[ast.AstNode] = imported_mod.parent
while parent is not None:
if parent.loc.mod_path == imported_mod.loc.mod_path:
self.__debug_print(
Expand Down

0 comments on commit 5ef8cc2

Please sign in to comment.