MCPcopy Index your code
hub / github.com/pathwaycom/pathway / _schema_builder

Function _schema_builder

python/pathway/internals/schema.py:646–663  ·  view source on GitHub ↗
(
    _name: str,
    _dict: dict[str, Any],
    *,
    properties: SchemaProperties = SchemaProperties(),
    id_dtype: dt.DType = dt.ANY_POINTER,
    id_append_only: bool | None = None,
)

Source from the content-addressed store, hash-verified

644
645
646def _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
666def is_subschema(left: type[Schema], right: type[Schema]):

Callers 4

schema_builderFunction · 0.90
schema_from_typesFunction · 0.85
schema_addFunction · 0.85
schema_builderFunction · 0.85

Calls 2

SchemaPropertiesClass · 0.85
SchemaMetaclassClass · 0.85

Tested by

no test coverage detected