From d7a0da8f06d1115d23aa55b27626b443d4e0567c Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Sat, 26 Apr 2025 13:57:36 -0700 Subject: [PATCH] checkpointer: Enter stack for blobs dict in InMemorySaver (#4419) --- libs/checkpoint/langgraph/checkpoint/memory/__init__.py | 1 + libs/checkpoint/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/checkpoint/langgraph/checkpoint/memory/__init__.py b/libs/checkpoint/langgraph/checkpoint/memory/__init__.py index f73b5c746..b4b263239 100644 --- a/libs/checkpoint/langgraph/checkpoint/memory/__init__.py +++ b/libs/checkpoint/langgraph/checkpoint/memory/__init__.py @@ -93,6 +93,7 @@ class InMemorySaver( if factory is not defaultdict: self.stack.enter_context(self.storage) # type: ignore[arg-type] self.stack.enter_context(self.writes) # type: ignore[arg-type] + self.stack.enter_context(self.blobs) # type: ignore[arg-type] def __enter__(self) -> "InMemorySaver": return self.stack.__enter__() diff --git a/libs/checkpoint/pyproject.toml b/libs/checkpoint/pyproject.toml index 049596e72..746054b40 100644 --- a/libs/checkpoint/pyproject.toml +++ b/libs/checkpoint/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-checkpoint" -version = "2.0.24" +version = "2.0.25" description = "Library with base interfaces for LangGraph checkpoint savers." authors = [] license = "MIT"