diff --git a/hugr-py/src/hugr/hugr.py b/hugr-py/src/hugr/hugr.py index edc9793c4..628ee2b43 100644 --- a/hugr-py/src/hugr/hugr.py +++ b/hugr-py/src/hugr/hugr.py @@ -241,11 +241,11 @@ def incoming_links(self, node: ToNode) -> Iterable[tuple[InPort, list[OutPort]]] return self._node_links(node, self._links.bck) def num_incoming(self, node: Node) -> int: - # connecetd links + # connected links return sum(1 for _ in self.incoming_links(node)) def num_outgoing(self, node: ToNode) -> int: - # connecetd links + # connected links return sum(1 for _ in self.outgoing_links(node)) # TODO: num_links and _linked_ports diff --git a/hugr-py/src/hugr/serialization/ops.py b/hugr-py/src/hugr/serialization/ops.py index 2f9a825a5..15c409700 100644 --- a/hugr-py/src/hugr/serialization/ops.py +++ b/hugr-py/src/hugr/serialization/ops.py @@ -369,7 +369,7 @@ def deserialize(self) -> ops.LoadFunc: (f_ty,) = signature.output assert isinstance( f_ty, tys.FunctionType - ), "Expected single funciton type output" + ), "Expected single function type output" return ops.LoadFunc( self.func_sig.deserialize(), f_ty,