From ee60b84cf65c3e11c80e7f77330bfc4e14711ac6 Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:42:03 -0800 Subject: [PATCH] Fix Analysis (pop type) (#892) --- lumen/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lumen/serializers.py b/lumen/serializers.py index 0274af4c6..2bb03d71e 100644 --- a/lumen/serializers.py +++ b/lumen/serializers.py @@ -19,7 +19,8 @@ def serialize(self, data) -> dict[str, any]: @classmethod def deserialize(cls, data) -> dict[str, any]: - serialize_spec = dict(data.pop('serializer', {})) + data = dict(data) + serialize_spec = data.pop('serializer', {}) serializer = cls.from_spec(serialize_spec) return serializer.deserialize(data)