(
_name: str,
_dict: dict[str, Any],
*,
properties: SchemaProperties = SchemaProperties(),
id_dtype: dt.DType = dt.ANY_POINTER,
id_append_only: bool | None = None,
)
| 644 | |
| 645 | |
| 646 | def _schema_builder( |
| 647 | _name: str, |
| 648 | _dict: dict[str, Any], |
| 649 | *, |
| 650 | properties: SchemaProperties = SchemaProperties(), |
| 651 | id_dtype: dt.DType = dt.ANY_POINTER, |
| 652 | id_append_only: bool | None = None, |
| 653 | ) -> type[Schema]: |
| 654 | schema = SchemaMetaclass( |
| 655 | _name, |
| 656 | (Schema,), |
| 657 | _dict, |
| 658 | append_only=properties.append_only, |
| 659 | id_dtype=id_dtype, |
| 660 | id_append_only=id_append_only, |
| 661 | ) |
| 662 | assert issubclass(schema, Schema) |
| 663 | return schema |
| 664 | |
| 665 | |
| 666 | def is_subschema(left: type[Schema], right: type[Schema]): |
no test coverage detected