Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed May 24, 2024
1 parent 6f939ab commit 5543473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-py/src/hugr/hugr.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _node_links(self, node: Node, links: dict[P, K]) -> Iterable[tuple[P, list[K
try:
direction = next(iter(links.keys())).direction
except StopIteration:
return iter(())
return
# iterate over known offsets
for offset in range(self.num_ports(node, direction)):
port = cast(P, node.port(offset, direction))
Expand Down

0 comments on commit 5543473

Please sign in to comment.