alinarus's picture
Upload folder using huggingface_hub (part 18)
9ff4bea verified
Raw History Blame Contribute Delete
1.19 kB
# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/build/re_type_definitions/rerun/components/bool.def.rs".
# You can extend this class by creating a "BoolExt" class in "bool_ext.py".
from __future__ import annotations
from .. import encodings
from .._baseclasses import (
ComponentBatchMixin,
ComponentMixin,
)
__all__ = ["Bool", "BoolBatch"]
class Bool(encodings.Bool, ComponentMixin):
"""
**Component**: A boolean value.
The Viewer shows it as a checkbox.
Boolean table columns without a component type are shown with this component.
⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
"""
_BATCH_TYPE = None
# You can define your own __init__ function as a member of BoolExt in bool_ext.py
# Note: there are no fields here because Bool delegates to encodings.Bool
class BoolBatch(encodings.BoolBatch, ComponentBatchMixin):
_COMPONENT_TYPE: str = "rerun.components.Bool"
# This is patched in late to avoid circular dependencies.
Bool._BATCH_TYPE = BoolBatch # type: ignore[assignment]