From 60984b6e13836222ffa783cb51d278150b3694e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 17 Aug 2023 17:08:05 +0200 Subject: [PATCH] fix: pyright error in helpers.py --- src/pydase/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index c3b1d00..698524e 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -197,7 +197,7 @@ def extract_dict_or_list_entry(data: dict[str, Any], key: str) -> dict[str, Any] # When the attribute is a class instance, the attributes are nested in the # "value" key if current_data["type"] not in STANDARD_TYPES: - current_data = cast(dict[str, Any], current_data.get("value", None)) + current_data = cast(dict[str, Any], current_data.get("value", None)) # type: ignore assert isinstance(current_data, dict) return current_data