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