mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
The widened Mapping[str, Any] type on Store.put()/aput() let non-dict Mappings (e.g. UserDict, MappingProxyType) pass type-checking, but checkpoint-sqlite and checkpoint-postgres only had a type-checker-only cast(dict, op.value) rather than an actual runtime conversion, so these values would raise TypeError from orjson/json during serialization. InMemoryStore already normalized via dict(op.value); apply the same normalization here. Caught by open-swe's automated review on this PR.