(self, *args: str | expr.ColumnReference)
| 397 | return schema_builder(columns=columns, id_dtype=self.id.dtype) |
| 398 | |
| 399 | def without(self, *args: str | expr.ColumnReference) -> type[Schema]: |
| 400 | columns: dict[str, ColumnDefinition] = { |
| 401 | col.name: col.to_definition() for col in self.__columns__.values() |
| 402 | } |
| 403 | for arg in args: |
| 404 | if isinstance(arg, str): |
| 405 | name = arg |
| 406 | else: |
| 407 | name = arg._name |
| 408 | try: |
| 409 | columns.pop(name) |
| 410 | except KeyError: |
| 411 | raise ValueError( |
| 412 | f"Schema.without() argument {name!r} has to refer to an existing column." |
| 413 | ) |
| 414 | return schema_builder(columns=columns, id_dtype=self.id.dtype) |
| 415 | |
| 416 | def with_id_type(self, type, *, append_only: bool | None = None): |
| 417 | type = dt.wrap(type) |
nothing calls this directly
no test coverage detected