Customize deserialization to re-create the client objects. This method is called by pickle when loading the object's state.
(self, state)
| 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 | |
| 651 | class DashScopeEmbedder(DataComponent): |
nothing calls this directly
no test coverage detected