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

Method __reduce_ex__

python/pyfory/tests/test_reduce_serializer.py:64–65  ·  view source on GitHub ↗
(self, protocol)

Source from the content-addressed store, hash-verified

62 self.computed = x * y
63
64 def __reduce_ex__(self, protocol):
65 return self.__class__, (self.x, self.y)
66
67 def __eq__(self, other):
68 return isinstance(other, self.__class__) and self.x == other.x and self.y == other.y and self.computed == other.computed

Callers 1

writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected