MCPcopy Index your code
hub / github.com/data-apis/python-record-api / encode

Function encode

record_api/core.py:51–56  ·  view source on GitHub ↗

Encodes an object for serialization. Type is always serialized as well If falsy is returned, the value is not included.

(o: object)

Source from the content-addressed store, hash-verified

49
50@functools.singledispatch
51def encode(o: object) -> object:
52 """
53 Encodes an object for serialization. Type is always serialized as well
54 If falsy is returned, the value is not included.
55 """
56 return None
57
58
59@encode.register

Callers 1

defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected