# maybe_add_typed_methods

> **Function** in `langgraph.checkpoint`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/maybe_add_typed_methods)

Wrap serde old serde implementations in a class with loads_typed and dumps_typed for backwards compatibility.

## Signature

```python
maybe_add_typed_methods(
    serde: SerializerProtocol | UntypedSerializerProtocol,
) -> SerializerProtocol
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint/langgraph/checkpoint/serde/base.py#L40)