Skip to content

Commit f9234f7

Browse files
authored
Merge pull request davecom#15 from SuperManEver/fix(typo)
Adjust type annotation for visited vertices
2 parents 4ed4ba0 + 742bc9d commit f9234f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter4/mst.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def mst(wg: WeightedGraph[V], start: int = 0) -> Optional[WeightedPath]:
3131
return None
3232
result: WeightedPath = [] # holds the final MST
3333
pq: PriorityQueue[WeightedEdge] = PriorityQueue()
34-
visited: [bool] = [False] * wg.vertex_count # where we've been
34+
visited: List[bool] = [False] * wg.vertex_count # where we've been
3535

3636
def visit(index: int):
3737
visited[index] = True # mark as visited

0 commit comments

Comments
 (0)