Skip to content

Commit

Permalink
copy when flipping function type
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jun 18, 2024
1 parent 80e6832 commit e10b1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-py/src/hugr/_tys.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def empty(cls) -> FunctionType:
return cls(input=[], output=[])

def flip(self) -> FunctionType:
return FunctionType(input=self.output, output=self.input)
return FunctionType(input=list(self.output), output=list(self.input))


@dataclass(frozen=True)
Expand Down

0 comments on commit e10b1d1

Please sign in to comment.