diff --git a/data_processor.py b/data_processor.py index 167a040..ed20f96 100644 --- a/data_processor.py +++ b/data_processor.py @@ -14,6 +14,7 @@ RE_RETRIEVE_RATIO = 0.8 # 80% of cumulated energy sent to the grid CONFIG_FILE_PATH = "config.yml" + # From python3.11 'StrEnum' can be used class DataTypes(str, Enum): """Energy types""" diff --git a/table_view.py b/table_view.py index ca36898..b446b90 100644 --- a/table_view.py +++ b/table_view.py @@ -32,7 +32,7 @@ def __str__(self) -> str: class TableView(): - headers: list[str] = [] + headers: list[tuple[str, str]] = [] rows: list[list[Any]] = [] def __init__(self, col_width: int = 8) -> None: