Set the state from redis deserialization. This method is called by pickle to deserialize the object. Args: state: The state dict for deserialization.
(self, state: dict[str, Any])
| 2075 | return state |
| 2076 | |
| 2077 | def __setstate__(self, state: dict[str, Any]): |
| 2078 | """Set the state from redis deserialization. |
| 2079 | |
| 2080 | This method is called by pickle to deserialize the object. |
| 2081 | |
| 2082 | Args: |
| 2083 | state: The state dict for deserialization. |
| 2084 | """ |
| 2085 | state["parent_state"] = None |
| 2086 | state["substates"] = {} |
| 2087 | for key, value in state.items(): |
| 2088 | object.__setattr__(self, key, value) |
| 2089 | |
| 2090 | def _check_state_size( |
| 2091 | self, |
nothing calls this directly
no test coverage detected