From a98ffc95fd4d43e6488e99dda326d8d283be78f4 Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Wed, 29 Apr 2026 09:31:31 -0400 Subject: [PATCH] fix(checkpoint-postgres): type blob_values as Sequence[tuple[bytes, bytes, bytes]] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace Any with the concrete element type — each row is (key, type_tag, blob) all as bytes — matching how _load_blobs unpacks and decodes them. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py index 6dc1eabb0..3ebafa6e1 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py @@ -248,7 +248,7 @@ class BasePostgresSaver(BaseCheckpointSaver[str]): def _load_blobs( self, - blob_values: Any, + blob_values: Sequence[tuple[bytes, bytes, bytes]], ) -> dict[str, Any]: if not blob_values: return {}