def __setstate__(self, state): dataclass_setstate(self, state)
def __setstate__(self, state): self.is_closing = state.pop('is_closing', self.is_closing) dataclass_setstate(self, state)
def __setstate__(self, state): return dataclass_setstate(self, state)