MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / __getstate__

Method __getstate__

ehforwarderbot/status.py:35–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 raise NotImplementedError()
34
35 def __getstate__(self):
36 state = self.__dict__.copy()
37 if state['destination_channel'] is not None:
38 state['destination_channel'] = state['destination_channel'].channel_id
39 return state
40
41 def __setstate__(self, state: Dict[str, Any]):
42 self.__dict__.update(state)

Callers 3

__getstate__Method · 0.45
__getstate__Method · 0.45
__getstate__Method · 0.45

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected