MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / __getstate__

Method __getstate__

join/LSH/datasketch/storage.py:780–789  ·  view source on GitHub ↗

Get a pickable state by removing unpickable objects. :rtype: dict[str, any] :return: the state

(self)

Source from the content-addressed store, hash-verified

778 self._client.buffer_size = value
779
780 def __getstate__(self):
781 """
782 Get a pickable state by removing unpickable objects.
783
784 :rtype: dict[str, any]
785 :return: the state
786 """
787 state = self.__dict__.copy()
788 state.pop('_client')
789 return state
790
791 def __setstate__(self, state):
792 """

Callers

nothing calls this directly

Calls 2

copyMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected