fix compat

This commit is contained in:
Florian Bezannier
2021-04-21 13:24:18 +02:00
parent 964ea041a5
commit 9e43d25839
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
from copy import deepcopy
from typing import List
import dash_bootstrap_components as dbc
import dash_table
@@ -58,7 +59,7 @@ battery_table = None
# pylint: disable=too-many-locals
def get_figures(trips: Trips, charging: list[dict]):
def get_figures(trips: Trips, charging: List[dict]):
global consumption_fig, consumption_df, trips_map, consumption_fig_by_speed, table_fig, info, battery_info, \
battery_table, consumption_graph_by_temp
lats = []
+3 -1
View File
@@ -1,6 +1,8 @@
import json
import traceback
from datetime import datetime, timezone
from typing import List
import dash_bootstrap_components as dbc
from dash.dependencies import Output, Input, MATCH, State
from dash.exceptions import PreventUpdate
@@ -28,7 +30,7 @@ ABRP_SWITCH = 'abrp-switch'
ERROR_DIV = dbc.Alert("No data to show, there is probably no trips recorded yet", color="danger")
trips: Trips
chargings: list[dict]
chargings: List[dict]
min_date = max_date = min_millis = max_millis = step = marks = cached_layout = None