MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __setstate__

Method __setstate__

lib/sqlalchemy/orm/util.py:1151–1164  ·  view source on GitHub ↗
(self, state: Dict[str, Any])

Source from the content-addressed store, hash-verified

1149 }
1150
1151 def __setstate__(self, state: Dict[str, Any]) -> None:
1152 self.__init__( # type: ignore
1153 state["entity"],
1154 state["mapper"],
1155 state["alias"],
1156 state["name"],
1157 state["with_polymorphic_mappers"],
1158 state["with_polymorphic_discriminator"],
1159 state["base_alias"],
1160 state["use_mapper_path"],
1161 state["adapt_on_names"],
1162 state["represents_outer_join"],
1163 state["nest_adapters"],
1164 )
1165
1166 def _merge_with(self, other: AliasedInsp[_O]) -> AliasedInsp[_O]:
1167 # assert self._is_with_polymorphic

Callers

nothing calls this directly

Calls 1

__init__Method · 0.95

Tested by

no test coverage detected