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

Method __getstate__

api/bedrock_client.py:90–101  ·  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

88 }
89
90 def __getstate__(self):
91 """
92 Customize serialization to exclude non-picklable client objects.
93 This method is called by pickle when saving the object's state.
94 """
95 state = self.__dict__.copy()
96 # Remove the unpicklable client instances
97 if 'sync_client' in state:
98 del state['sync_client']
99 if 'async_client' in state:
100 del state['async_client']
101 return state
102
103 def __setstate__(self, state):
104 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected