From e12fab88cad11e606763c98b92c9a0e5a177a680 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Wed, 10 Jan 2024 13:36:56 +0000 Subject: [PATCH] Actually call the constructors --- guppy/hugr/hugr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guppy/hugr/hugr.py b/guppy/hugr/hugr.py index 7522719e..e060e689 100644 --- a/guppy/hugr/hugr.py +++ b/guppy/hugr/hugr.py @@ -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]) @@ -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])