Skip to content

Commit 92fa424

Browse files
gkorlandclaude
andcommitted
Add strict=True to zip in sync find_paths for consistency
Matches the async find_paths which already uses strict=True, so both versions raise immediately on a nodes/edges length mismatch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e893b66 commit 92fa424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def find_paths(self, src: int, dest: int) -> list[Path]:
581581
nodes = p.nodes()
582582
edges = p.edges()
583583

584-
for n, e in zip(nodes, edges):
584+
for n, e in zip(nodes, edges, strict=True):
585585
path.append(encode_node(n))
586586
path.append(encode_edge(e))
587587

0 commit comments

Comments
 (0)