From 6c16d7ab4bb54effb96bf0b21ee92fe092cb99e9 Mon Sep 17 00:00:00 2001 From: Caspar Broekhuizen Date: Thu, 18 Dec 2025 18:14:27 -0800 Subject: [PATCH] fix: pathlib 313 --- libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py index fe2479182..aa06ab7fc 100644 --- a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py +++ b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py @@ -64,6 +64,10 @@ SAFE_MSGPACK_TYPES: frozenset[tuple[str, ...]] = frozenset( ("pathlib", "Path"), ("pathlib", "PosixPath"), ("pathlib", "WindowsPath"), + # pathlib in Python 3.13+ + ("pathlib._local", "Path"), + ("pathlib._local", "PosixPath"), + ("pathlib._local", "WindowsPath"), # langgraph ("langgraph.types", "Send"), ("langgraph.types", "Interrupt"),