From f81f9b7ff8969d448bab6d16a4a9230f90e17514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Wed, 2 Aug 2023 12:06:22 +0200 Subject: [PATCH] fix: adding NoneType to STANDARD_TYPES, fixing reading None from JSON file --- src/pyDataInterface/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyDataInterface/utils/helpers.py b/src/pyDataInterface/utils/helpers.py index 37506ff..d5fd8d3 100644 --- a/src/pyDataInterface/utils/helpers.py +++ b/src/pyDataInterface/utils/helpers.py @@ -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: