fix compat with python 3.7 v2

This commit is contained in:
Florian Bezannier
2021-03-23 18:52:20 +01:00
parent 32c7e548bc
commit dd73ff468b
+2 -2
View File
@@ -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 = []