MCPcopy
hub / github.com/danielgtaylor/python-betterproto / __setstate__

Method __setstate__

src/betterproto/__init__.py:1143–1144  ·  view source on GitHub ↗
(self: T, pickled_bytes: bytes)

Source from the content-addressed store, hash-verified

1141 return bytes(self)
1142
1143 def __setstate__(self: T, pickled_bytes: bytes) -> T:
1144 return self.parse(pickled_bytes)
1145
1146 def __reduce__(self) -> Tuple[Any, ...]:
1147 return (self.__class__.FromString, (bytes(self),))

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected