Skip to content

Commit

Permalink
fix: fix some typos
Browse files Browse the repository at this point in the history
add a config file for `typos` tool https://github.com/crate-ci/typos?tab=readme-ov-file

we could consider adding this to CI/pre-commit but don't want to do a big repo-wide change right now
  • Loading branch information
ss2165 committed Jul 1, 2024
1 parent 6ed7417 commit 5b53d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hugr-py/src/hugr/hugr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hugr-py/src/hugr/serialization/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b53d26

Please sign in to comment.