Handled type annotation

This commit is contained in:
Joelkurien 2024-10-28 13:46:41 +11:00
parent 32b9b8f6b4
commit 6269fd68d0

View File

@ -14,7 +14,7 @@ class JohnsonGraph:
self.graph: dict[str, list[tuple[str, int]]] = {}
# add vertices for a graph
def add_vertices(self, u: int) -> None:
def add_vertices(self, u: str) -> None:
"""
Adds a vertex `u` to the graph with an empty adjacency list.
"""