(self)
| 4553 | |
| 4554 | @property |
| 4555 | def table(self) -> Table: |
| 4556 | try: |
| 4557 | if isinstance(self.parent, Table): |
| 4558 | return self.parent |
| 4559 | except AttributeError: |
| 4560 | pass |
| 4561 | raise exc.InvalidRequestError( |
| 4562 | "This constraint is not bound to a table. Did you " |
| 4563 | "mean to call table.append_constraint(constraint) ?" |
| 4564 | ) |
| 4565 | |
| 4566 | def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None: |
| 4567 | assert isinstance(parent, (Table, Column)) |
no outgoing calls