Skip to content

Commit

Permalink
use FunctionType.empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jan 12, 2024
1 parent 1051e69 commit 6a94c82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions guppy/hugr/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ class CustomOp(LeafOp):
lop: Literal["CustomOp"] = "CustomOp"
extension: ExtensionId
op_name: str
signature: tys.FunctionType = Field(
default_factory=lambda: tys.FunctionType(input=[], output=[], extension_reqs=[])
)
signature: tys.FunctionType = Field(default_factory=tys.FunctionType.empty)
description: str = ""
args: list[tys.TypeArg] = Field(default_factory=list)

Expand Down

0 comments on commit 6a94c82

Please sign in to comment.