MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / __setstate__

Method __setstate__

api/dashscope_client.py:640–648  ·  view source on GitHub ↗

Customize deserialization to re-create the client objects. This method is called by pickle when loading the object's state.

(self, state)

Source from the content-addressed store, hash-verified

638 return state
639
640 def __setstate__(self, state):
641 """
642 Customize deserialization to re-create the client objects.
643 This method is called by pickle when loading the object's state.
644 """
645 self.__dict__.update(state)
646 # Re-initialize the clients after unpickling
647 self.sync_client = self.init_sync_client()
648 self.async_client = None # It will be lazily initialized when acall is used
649
650
651class DashScopeEmbedder(DataComponent):

Callers

nothing calls this directly

Calls 1

init_sync_clientMethod · 0.95

Tested by

no test coverage detected