Skip to content

pixano.features.types.base_type

BaseType

Bases: LanceModel

Base class for all Pixano types.

This class should be inherited by all Pixano types. BaseSchemas can only have a primitive type or a BaseType attribute.

is_base_type(cls, strict=False)

Check if a class is a BaseType or subclass of BaseType.

Source code in pixano/features/types/base_type.py
def is_base_type(cls: type, strict: bool = False) -> bool:
    """Check if a class is a `BaseType` or subclass of `BaseType`."""
    return issubclass_strict(cls, BaseType, strict)