Skip to content

Commit 194bc94

Browse files
committed
Fix typecheck
1 parent e519537 commit 194bc94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

key-value/key-value-shared/src/key_value/shared/utils/serialization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,7 @@ def prepare_load(self, data: dict[str, Any]) -> dict[str, Any]:
145145
}
146146

147147
def prepare_dump(self, data: dict[str, Any]) -> dict[str, Any]:
148-
return data.get("value")
148+
if "value" not in data:
149+
msg = "Value field not found"
150+
raise DeserializationError(message=msg)
151+
return verify_dict(obj=data["value"])

0 commit comments

Comments
 (0)