(self, arg: str | ColumnReference)
| 137 | return self |
| 138 | |
| 139 | def _normalize(self, arg: str | ColumnReference): |
| 140 | if isinstance(arg, ColumnReference): |
| 141 | if isinstance(arg.table, ThisMetaclass): |
| 142 | if arg.table != this: |
| 143 | raise ValueError( |
| 144 | f"TableSlice expects {repr(arg.name)} or this.{arg.name} argument as column reference." |
| 145 | ) |
| 146 | else: |
| 147 | if arg.table != self._table: |
| 148 | raise ValueError( |
| 149 | "TableSlice method arguments should refer to table of which the slice was created." |
| 150 | ) |
| 151 | return arg.name |
| 152 | else: |
| 153 | return arg |
no outgoing calls
no test coverage detected