Skip to content

Commit

Permalink
Actually call the constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jan 10, 2024
1 parent c371f84 commit e12fab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guppy/hugr/hugr.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def in_port(self, offset: PortOffset | None) -> InPortV:
assert offset < self.num_in_ports
if offset < 0:
# Order edge
return InPortV(self, len(self.in_port_types), NoneType)
return InPortV(self, len(self.in_port_types), NoneType())
else:
return InPortV(self, offset, self.in_port_types[offset])

Expand All @@ -167,7 +167,7 @@ def out_port(self, offset: PortOffset | None) -> OutPortV:
assert offset < self.num_out_ports
if offset < 0:
# Order edge
return OutPortV(self, len(self.out_port_types), NoneType)
return OutPortV(self, len(self.out_port_types), NoneType())
else:
return OutPortV(self, offset, self.out_port_types[offset])

Expand Down

0 comments on commit e12fab8

Please sign in to comment.