alinarus's picture
Upload folder using huggingface_hub (part 18)
9ff4bea verified
Raw History Blame Contribute Delete
1.04 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_edge.def.rs".
# You can extend this class by creating a "GraphEdgeExt" class in "graph_edge_ext.py".
from __future__ import annotations
from .. import encodings
from .._baseclasses import (
ComponentBatchMixin,
ComponentMixin,
)
__all__ = ["GraphEdge", "GraphEdgeBatch"]
class GraphEdge(encodings.Utf8Pair, ComponentMixin):
"""**Component**: An edge in a graph connecting two nodes."""
_BATCH_TYPE = None
# You can define your own __init__ function as a member of GraphEdgeExt in graph_edge_ext.py
# Note: there are no fields here because GraphEdge delegates to encodings.Utf8Pair
class GraphEdgeBatch(encodings.Utf8PairBatch, ComponentBatchMixin):
_COMPONENT_TYPE: str = "rerun.components.GraphEdge"
# This is patched in late to avoid circular dependencies.
GraphEdge._BATCH_TYPE = GraphEdgeBatch # type: ignore[assignment]