(self)
| 4173 | |
| 4174 | @property |
| 4175 | def table(self) -> Table: |
| 4176 | try: |
| 4177 | if isinstance(self.parent, Table): |
| 4178 | return self.parent |
| 4179 | except AttributeError: |
| 4180 | pass |
| 4181 | raise exc.InvalidRequestError( |
| 4182 | "This constraint is not bound to a table. Did you " |
| 4183 | "mean to call table.append_constraint(constraint) ?" |
| 4184 | ) |
| 4185 | |
| 4186 | def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None: |
| 4187 | assert isinstance(parent, (Table, Column)) |
no outgoing calls