From dd73ff468baef254704e1f49ba72edda10130734 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Tue, 23 Mar 2021 18:52:20 +0100 Subject: [PATCH] fix compat with python 3.7 v2 --- web/figures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/figures.py b/web/figures.py index c9fd9ac..128accc 100644 --- a/web/figures.py +++ b/web/figures.py @@ -1,5 +1,5 @@ from copy import deepcopy -from typing import List +from typing import List, Tuple import dash_bootstrap_components as dbc import dash_table @@ -55,7 +55,7 @@ battery_info = dbc.Alert("No data to show", color="danger") battery_table = None -def get_figures(trips: Trips, charging: tuple[dict]): +def get_figures(trips: Trips, charging: Tuple[dict]): global consumption_fig, consumption_df, trips_map, consumption_fig_by_speed, table_fig, info, battery_info, \ battery_table, consumption_graph_by_temp lats = []