Checked other resources
Related Issues / PRs
#8345
Reproduction Steps / Example Code (Python)
import pathlib
from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
s = JsonPlusSerializer()
# Fails: PurePosixPath is a PurePath but not a Path
p = pathlib.PurePosixPath("/foo/bar")
s.dumps(p)
# Fails: range has no serializer
r = range(0, 10, 2)
s.dumps(r)
Error Message and Stack Trace (if applicable)
Description
- I'm using LangGraph's msgpack checkpointer to serialize state.
- I expect pathlib.PurePath subclasses (PurePosixPath, PureWindowsPath) and range objects to serialize/deserialize correctly.
- Instead, they raise a serialization error. PurePath subclasses are missed because the check uses
pathlib.Path instead of pathlib.PurePath. range objects have no serialization support at all.
System Info
langgraph latest
Checked other resources
Related Issues / PRs
#8345
Reproduction Steps / Example Code (Python)
Error Message and Stack Trace (if applicable)
Description
pathlib.Pathinstead ofpathlib.PurePath. range objects have no serialization support at all.System Info
langgraph latest