MCPcopy Index your code
hub / github.com/reflex-dev/reflex / __setstate__

Method __setstate__

reflex/state.py:2077–2088  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.80
__setattr__Method · 0.45

Tested by

no test coverage detected