From 1510430bd370a0bbf91f4a4def7ad88b15a14edd Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Mon, 15 Jan 2024 11:25:21 +0000 Subject: [PATCH] fix: default input extensions should be None --- guppy/hugr/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guppy/hugr/ops.py b/guppy/hugr/ops.py index 970ee163..7d60a6d8 100644 --- a/guppy/hugr/ops.py +++ b/guppy/hugr/ops.py @@ -26,7 +26,7 @@ class BaseOp(ABC, BaseModel): # Parent node index of node the op belongs to, used only at serialization time parent: NodeID = 0 - input_extensions: ExtensionSet = Field(default_factory=list) + input_extensions: ExtensionSet | None = None def insert_port_types(self, in_types: TypeRow, out_types: TypeRow) -> None: """Hook to insert type information from the input and output ports into the