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

Method __getstate__

api/dashscope_client.py:627–638  ·  view source on GitHub ↗

Customize serialization to exclude non-picklable client objects. This method is called by pickle when saving the object's state.

(self)

Source from the content-addressed store, hash-verified

625 }
626
627 def __getstate__(self):
628 """
629 Customize serialization to exclude non-picklable client objects.
630 This method is called by pickle when saving the object's state.
631 """
632 state = self.__dict__.copy()
633 # Remove the unpicklable client instances
634 if 'sync_client' in state:
635 del state['sync_client']
636 if 'async_client' in state:
637 del state['async_client']
638 return state
639
640 def __setstate__(self, state):
641 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected