MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __setstate__

Method __setstate__

lib/sqlalchemy/sql/elements.py:2201–2206  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

2199 return d
2200
2201 def __setstate__(self, state):
2202 if state.get("unique", False):
2203 state["key"] = _anonymous_label.safe_construct(
2204 id(self), state.get("_orig_key", "param"), sanitize_key=True
2205 )
2206 self.__dict__.update(state)
2207
2208 def __repr__(self):
2209 return "%s(%r, %r, type_=%r)" % (

Callers

nothing calls this directly

Calls 3

safe_constructMethod · 0.80
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected