MCPcopy Create free account
hub / github.com/apache/fory / __reduce__

Method __reduce__

python/pyfory/tests/test_reduce_serializer.py:99–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 self.name = "dict_obj"
98
99 def __reduce__(self):
100 # Return (callable, args, state, listitems, dictitems)
101 return self.__class__, (), {"name": self.name}, None, iter(self.data.items())
102
103 def __setstate__(self, state):
104 self.name = state["name"]

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected