From 6a94c826915e911b050c4e4158ef29e29696884a Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Fri, 12 Jan 2024 14:35:57 +0000 Subject: [PATCH] use FunctionType.empty --- guppy/hugr/ops.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guppy/hugr/ops.py b/guppy/hugr/ops.py index 75e2cd84..970ee163 100644 --- a/guppy/hugr/ops.py +++ b/guppy/hugr/ops.py @@ -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)