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

Method __setstate__

lib/sqlalchemy/sql/schema.py:6009–6016  ·  view source on GitHub ↗
(self, state: Dict[str, Any])

Source from the content-addressed store, hash-verified

6007 }
6008
6009 def __setstate__(self, state: Dict[str, Any]) -> None:
6010 self.tables = state["tables"]
6011 self.schema = state["schema"]
6012 self.naming_convention = state["naming_convention"]
6013 self._sequences = state["sequences"]
6014 self._schemas = state["schemas"]
6015 self._fk_memos = state["fk_memos"]
6016 self._objects = state.get("objects", set())
6017
6018 def clear(self) -> None:
6019 """Clear all objects from this MetaData."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected