From 69951c25a34bb6bcf3299623274542e122383523 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Jul 2024 10:26:50 +0200 Subject: [PATCH] fix error --- python/restbus/restbus.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/restbus/restbus.py b/python/restbus/restbus.py index f3024fc..2d525e5 100644 --- a/python/restbus/restbus.py +++ b/python/restbus/restbus.py @@ -4,11 +4,11 @@ import math import re import time -from typing import Any, Generator, Iterable, Optional, Tuple, List, Dict -from typing_extensions import TypeAlias +from typing import Any, Dict, Generator, Iterable, List, Optional, Tuple import google.protobuf.internal.containers # type: ignore import remotivelabs.broker.sync as br +from typing_extensions import TypeAlias class SignalValue: @@ -23,9 +23,9 @@ def next(self) -> br.network_api_pb2.Signal: return ret -SchedulingTuple: TypeAlias = Tuple[float, str, list[SignalValue]] -E2eCounterStates: TypeAlias = dict[str, int] -OverrideValues: TypeAlias = dict[str, list[float]] +SchedulingTuple: TypeAlias = Tuple[float, str, List[SignalValue]] +E2eCounterStates: TypeAlias = Dict[str, int] +OverrideValues: TypeAlias = Dict[str, List[float]] def gen_default_publish_values(