From 8e33d0aa98ca124d77bff533b18a2b316bafaa1a Mon Sep 17 00:00:00 2001 From: sbilge Date: Thu, 28 Nov 2024 12:34:59 +0000 Subject: [PATCH] data type fix --- src/metldata/builtin_transformations/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metldata/builtin_transformations/common/utils.py b/src/metldata/builtin_transformations/common/utils.py index ed3f6c6..a4d414a 100644 --- a/src/metldata/builtin_transformations/common/utils.py +++ b/src/metldata/builtin_transformations/common/utils.py @@ -37,7 +37,7 @@ def data_to_dict(data: DataPack) -> dict[str, Any]: return json.loads(dumps_datapack(deepcopy(data), yaml_format=False)) -def _thaw_content(frozen_dict: Mapping) -> dict: +def _thaw_content(frozen_dict: Mapping | tuple) -> dict | list: """Recursively converts a nested FrozenDict and frozenset to mutable types. This will be removed after we implement a FrozenDict validation to Schemapack lib. """