MCPcopy Create free account
hub / github.com/psf/cachecontrol / serialize

Method serialize

cachecontrol/serialize.py:62–63  ·  view source on GitHub ↗
(self, data: dict[str, Any])

Source from the content-addressed store, hash-verified

60 return b",".join([f"cc={self.serde_version}".encode(), self.serialize(data)])
61
62 def serialize(self, data: dict[str, Any]) -> bytes:
63 return cast(bytes, msgpack.dumps(data, use_bin_type=True))
64
65 def loads(
66 self,

Callers 1

dumpsMethod · 0.95

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected