fix: adding NoneType to STANDARD_TYPES, fixing reading None from JSON file

This commit is contained in:
Mose Müller 2023-08-02 12:06:22 +02:00
parent 86dd15d3f6
commit f81f9b7ff8

View File

@ -124,7 +124,7 @@ def generate_paths_from_DataService_dict(
return paths
STANDARD_TYPES = ("int", "float", "bool", "str", "Enum")
STANDARD_TYPES = ("int", "float", "bool", "str", "Enum", "NoneType")
def get_nested_value_by_path_and_key(data: dict, path: str, key: str = "value") -> Any: