From 495d258322517b43fcabccc10f48683f50b55dbb Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 19 Sep 2024 08:50:17 -0700 Subject: [PATCH] Fix 3.9 --- libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py index 43a8cfe47..eeee92290 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py @@ -373,7 +373,8 @@ class AsyncPostgresSaver(BasePostgresSaver): while True: try: yield asyncio.run_coroutine_threadsafe( - anext(aiter_), self.loop + anext(aiter_), # type: ignore[name-defined] + self.loop, ).result() except StopAsyncIteration: break