Skip to content

Commit a913faf

Browse files
committed
More formatting induced errors...
1 parent b18b9c9 commit a913faf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

hugr-py/src/hugr/ops.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ class IncompleteOp(Exception):
133133
@property
134134
def msg(self) -> str:
135135
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."
138137
)
139138

140139

@@ -349,8 +348,7 @@ def resolve(self, registry: ext.ExtensionRegistry) -> ExtOp | Custom:
349348
from hugr.ext import ExtensionRegistry, Extension # noqa: I001 # no circular import
350349

351350
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)
354352
except (
355353
Extension.OperationNotFound,
356354
ExtensionRegistry.ExtensionNotFound,
@@ -1014,8 +1012,7 @@ def _to_serial(self, parent: Node) -> sops.TailLoop:
10141012

10151013
def inner_signature(self) -> tys.FunctionType:
10161014
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]
10191016
)
10201017

10211018
def outer_signature(self) -> tys.FunctionType:
@@ -1248,7 +1245,7 @@ def _to_serial(self, parent: Node) -> sops.CallIndirect:
12481245
signature=self.signature._to_serial(),
12491246
)
12501247

1251-
def __call__(self, function: ComWire, *args: ComWire) -> Command: # type: ignore[override]
1248+
def __call__(self, function: ComWire, *args: ComWire) -> Command: # type: ignore[override]
12521249
return super().__call__(function, *args)
12531250

12541251
def outer_signature(self) -> tys.FunctionType:

0 commit comments

Comments
 (0)