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

Method __getstate__

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

Source from the content-addressed store, hash-verified

83 assert isinstance(self.channel, SlaveChannel), f"Slave channel {self.channel!r} is not valid."
84
85 def __getstate__(self):
86 state = super(ChatUpdates, self).__getstate__()
87 if state['channel'] is not None:
88 state['channel'] = state['channel'].channel_id
89 return state
90
91 def __setstate__(self, state: Dict[str, Any]):
92 super(ChatUpdates, self).__setstate__(state)

Callers

nothing calls this directly

Calls 1

__getstate__Method · 0.45

Tested by

no test coverage detected