Skip to content

Commit 041342f

Browse files
authored
fix: Fixed bug in python model export name mangling. (#2323)
This PR fixes a bug in the Python model export: `Call` nodes referred to themselves instead of the function to be called.
1 parent c58ddbf commit 041342f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hugr-py/src/hugr/model/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def find_func_input(self, node: Node) -> str | None:
539539
case _:
540540
return None
541541

542-
return _mangle_name(node, name)
542+
return _mangle_name(func_node, name)
543543

544544
def find_const_input(self, node: Node) -> model.Term | None:
545545
"""Find and export the constant that a node is connected to, if any."""

0 commit comments

Comments
 (0)