diff --git a/Graph/graph/graph_1.py b/Graph/graph/graph_1.py index ea024ad352b8efc59d1fe225f40e26ae0b722a26..c9d971d93374a81efb669ff41af4722274198691 100644 --- a/Graph/graph/graph_1.py +++ b/Graph/graph/graph_1.py @@ -27,11 +27,11 @@ class Node: _id = itertools.count(0) - def __init__(self): + def __init__(self) -> None: self.id: int = next(self._id) self.neighbors: Set['Node'] = set() - def __hash__(self): + def __hash__(self) -> int: # to be usable in set an object must be hashable # so we need to implement __hash__ # which must returm an int uniq per object