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

Method _set_parent

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

Source from the content-addressed store, hash-verified

4402 """
4403
4404 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4405 assert isinstance(parent, (Column, Table))
4406 Constraint._set_parent(self, parent)
4407 ColumnCollectionMixin._set_parent(self, parent)
4408
4409 def __contains__(self, x: Any) -> bool:
4410 return x in self._columns

Callers

nothing calls this directly

Calls 1

_set_parentMethod · 0.45

Tested by

no test coverage detected