Skip to content

Commit 6cf1b5b

Browse files
committed
fix: ensure int return type
1 parent 040119a commit 6cf1b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_2022/solutions/day16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def parse_data(
145145
graph, idx1, edge_cost_fn=lambda _: 1, goal=idx2
146146
)[idx2]
147147

148-
distances[(v1, v2)] = distances[(v2, v1)] = dist
148+
distances[(v1, v2)] = distances[(v2, v1)] = int(dist)
149149

150150
return tuple(flow_rates.items()), tuple(distances.items())
151151

0 commit comments

Comments
 (0)