Skip to content

Commit c0b4bf4

Browse files
Fix order of modules
1 parent b16389a commit c0b4bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/egglog/egraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __post_init__(self, modules: list[Module] = []) -> None:
108108
included_decls = [_BUILTIN_DECLS] if _BUILTIN_DECLS else []
109109
# Traverse all the included modules to flatten all their dependencies and add to the included declerations
110110
for mod in modules:
111-
for child_mod in [mod, *mod._flatted_deps]:
111+
for child_mod in [*mod._flatted_deps, mod]:
112112
if child_mod not in self._flatted_deps:
113113
self._flatted_deps.append(child_mod)
114114
included_decls.append(child_mod._mod_decls._decl)

0 commit comments

Comments
 (0)