MCPcopy Index your code
hub / github.com/ray-project/ray / from_custom

Method from_custom

python/ray/tests/test_serialization.py:247–249  ·  view source on GitHub ↗
(cls, data)

Source from the content-addressed store, hash-verified

245 class DataClass2(DataClass1):
246 @classmethod
247 def from_custom(cls, data):
248 custom = CustomClass(data)
249 return cls(custom)
250
251 def __reduce__(self):
252 return (self.from_custom, (self.custom.value,))

Callers

nothing calls this directly

Calls 2

clsClass · 0.85
CustomClassClass · 0.70

Tested by

no test coverage detected