@@ -133,8 +133,7 @@ class IncompleteOp(Exception):
133
133
@property
134
134
def msg (self ) -> str :
135
135
return (
136
- f"Operation {
137
- self .op } is incomplete, may require set_in_types to be called."
136
+ f"Operation { self .op } is incomplete, may require set_in_types to be called."
138
137
)
139
138
140
139
@@ -349,8 +348,7 @@ def resolve(self, registry: ext.ExtensionRegistry) -> ExtOp | Custom:
349
348
from hugr .ext import ExtensionRegistry , Extension # noqa: I001 # no circular import
350
349
351
350
try :
352
- op_def = registry .get_extension (
353
- self .extension ).get_op (self .op_name )
351
+ op_def = registry .get_extension (self .extension ).get_op (self .op_name )
354
352
except (
355
353
Extension .OperationNotFound ,
356
354
ExtensionRegistry .ExtensionNotFound ,
@@ -1014,8 +1012,7 @@ def _to_serial(self, parent: Node) -> sops.TailLoop:
1014
1012
1015
1013
def inner_signature (self ) -> tys .FunctionType :
1016
1014
return tys .FunctionType (
1017
- self ._inputs (), [tys .Sum (
1018
- [self .just_inputs , self .just_outputs ]), * self .rest ]
1015
+ self ._inputs (), [tys .Sum ([self .just_inputs , self .just_outputs ]), * self .rest ]
1019
1016
)
1020
1017
1021
1018
def outer_signature (self ) -> tys .FunctionType :
@@ -1248,7 +1245,7 @@ def _to_serial(self, parent: Node) -> sops.CallIndirect:
1248
1245
signature = self .signature ._to_serial (),
1249
1246
)
1250
1247
1251
- def __call__ (self , function : ComWire , * args : ComWire ) -> Command : # type: ignore[override]
1248
+ def __call__ (self , function : ComWire , * args : ComWire ) -> Command : # type: ignore[override]
1252
1249
return super ().__call__ (function , * args )
1253
1250
1254
1251
def outer_signature (self ) -> tys .FunctionType :
0 commit comments