Skip to content

Commit

Permalink
fix: default input extensions should be None
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jan 15, 2024
1 parent 7100132 commit 1510430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guppy/hugr/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1510430

Please sign in to comment.