diff --git a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py index d1855624d..01c89060b 100644 --- a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py +++ b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py @@ -468,7 +468,9 @@ def _msgpack_ext_hook(code: int, data: bytes) -> Any: return elif code == EXT_PYDANTIC_V1: try: - tup = msgpack.unpackb(data, ext_hook=_msgpack_ext_hook, strict_map_key=False) + tup = msgpack.unpackb( + data, ext_hook=_msgpack_ext_hook, strict_map_key=False + ) # module, name, kwargs cls = getattr(importlib.import_module(tup[0]), tup[1]) try: @@ -479,7 +481,9 @@ def _msgpack_ext_hook(code: int, data: bytes) -> Any: return elif code == EXT_PYDANTIC_V2: try: - tup = msgpack.unpackb(data, ext_hook=_msgpack_ext_hook, strict_map_key=False) + tup = msgpack.unpackb( + data, ext_hook=_msgpack_ext_hook, strict_map_key=False + ) # module, name, kwargs, method cls = getattr(importlib.import_module(tup[0]), tup[1]) try: