MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set_parent

Method _set_parent

lib/sqlalchemy/sql/schema.py:4784–4787  ·  view source on GitHub ↗
(self, parent: SchemaEventTarget, **kw: Any)

Source from the content-addressed store, hash-verified

4782 """
4783
4784 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4785 assert isinstance(parent, (Column, Table))
4786 Constraint._set_parent(self, parent)
4787 ColumnCollectionMixin._set_parent(self, parent)
4788
4789 def __contains__(self, x: Any) -> bool:
4790 return x in self._columns

Callers

nothing calls this directly

Calls 1

_set_parentMethod · 0.45

Tested by

no test coverage detected