alinarus's picture
Upload folder using huggingface_hub (part 18)
9ff4bea verified
Raw History Blame Contribute Delete
1.03 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/graph_node.def.rs".
# You can extend this class by creating a "GraphNodeExt" class in "graph_node_ext.py".
from __future__ import annotations
from .. import encodings
from .._baseclasses import (
ComponentBatchMixin,
ComponentMixin,
)
__all__ = ["GraphNode", "GraphNodeBatch"]
class GraphNode(encodings.Utf8, ComponentMixin):
"""**Component**: A string-based ID representing a node in a graph."""
_BATCH_TYPE = None
# You can define your own __init__ function as a member of GraphNodeExt in graph_node_ext.py
# Note: there are no fields here because GraphNode delegates to encodings.Utf8
class GraphNodeBatch(encodings.Utf8Batch, ComponentBatchMixin):
_COMPONENT_TYPE: str = "rerun.components.GraphNode"
# This is patched in late to avoid circular dependencies.
GraphNode._BATCH_TYPE = GraphNodeBatch # type: ignore[assignment]