From a09fcecbea256807a50bb6029344e9a56e8b8fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kuranowski?= Date: Sat, 13 Jul 2024 21:57:45 +0200 Subject: [PATCH] protocols: 3.8 compatibility --- pyroutelib3/protocols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyroutelib3/protocols.py b/pyroutelib3/protocols.py index ea9ce2b..fd2d933 100644 --- a/pyroutelib3/protocols.py +++ b/pyroutelib3/protocols.py @@ -60,7 +60,7 @@ def get_node(self, id: int) -> NodeLikeT_co: """ ... - def get_edges(self, id: int) -> Iterable[tuple[int, float]]: + def get_edges(self, id: int) -> Iterable[Tuple[int, float]]: """get_edges must return all edges outgoing from a *node* with the provided ID. The edges are a pair of (node_id, cost). All returned neighbor nodes must exist in the graph.