fix: docstring for serializer protocol (#6525)

This commit is contained in:
William FH
2025-12-01 18:14:12 +00:00
committed by GitHub
parent 630bd9ab95
commit 2b78bf3bad
@@ -15,9 +15,7 @@ class UntypedSerializerProtocol(Protocol):
class SerializerProtocol(Protocol):
"""Protocol for serialization and deserialization of objects.
- `dumps`: Serialize an object to bytes.
- `dumps_typed`: Serialize an object to a tuple `(type, bytes)`.
- `loads`: Deserialize an object from bytes.
- `loads_typed`: Deserialize an object from a tuple `(type, bytes)`.
Valid implementations include the `pickle`, `json` and `orjson` modules.