diff --git a/helpers.py b/helpers.py index f5e919b..b342e14 100644 --- a/helpers.py +++ b/helpers.py @@ -45,8 +45,8 @@ def get_value_by_path(meter_data: dict, path): return value -def convert_to_expected_type(value: str, expected_type: list[str, int, float, bool], - default: list[None, str, int, float, bool]) -> list[None, str, int, float, bool]: +def convert_to_expected_type(value: str, expected_type: [str, int, float, bool], # type: ignore + default: [None, str, int, float, bool]) -> [None, str, int, float, bool]: # type: ignore ''' Try to convert value to expected_type, otherwise return default''' try: conversion_functions = {