From 64ff404db74df819a4a9518f3b76267babb5293b Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Wed, 28 Jun 2023 11:45:06 +0200 Subject: [PATCH] rerun codegen --- crates/re_types/source_hash.txt | 2 +- rerun_py/rerun_sdk/rerun/_rerun2/archetypes/points2d.py | 7 ++++--- rerun_py/rerun_sdk/rerun/_rerun2/components/class_id.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/color.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/draw_order.py | 7 +++++-- .../rerun_sdk/rerun/_rerun2/components/instance_key.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/keypoint_id.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/label.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/point2d.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/components/radius.py | 7 +++++-- rerun_py/rerun_sdk/rerun/_rerun2/datatypes/vec2d.py | 7 +++++-- 11 files changed, 50 insertions(+), 22 deletions(-) diff --git a/crates/re_types/source_hash.txt b/crates/re_types/source_hash.txt index 35bc2a7b43f1..672ccc20c301 100644 --- a/crates/re_types/source_hash.txt +++ b/crates/re_types/source_hash.txt @@ -1,4 +1,4 @@ # This is a sha256 hash for all direct and indirect dependencies of this crate's build script. # It can be safely removed at anytime to force the build script to run again. # Check out build.rs to see how it's computed. -0efa9d8e1a2e468bfa5b77cdc4c29bf2bd82fead0eeedafdd568834e79d7ea4c \ No newline at end of file +c10dc39333002ce5c62d9e88a7feb4fca76098528fe643012a53665a9934581e \ No newline at end of file diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/archetypes/points2d.py b/rerun_py/rerun_sdk/rerun/_rerun2/archetypes/points2d.py index 89b567557c51..6fd3d30c8795 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/archetypes/points2d.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/archetypes/points2d.py @@ -2,13 +2,14 @@ from __future__ import annotations -__all__ = ["Points2D"] - - from dataclasses import dataclass +__all__ = ["Points2D"] + from .. import components +## --- Points2D --- ## + @dataclass class Points2D: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/class_id.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/class_id.py index c61b49ca56b8..0cd3d86043c4 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/class_id.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/class_id.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["ClassId", "ClassIdArray", "ClassIdArrayLike", "ClassIdLike", "ClassIdType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["ClassId", "ClassIdArray", "ClassIdArrayLike", "ClassIdLike", "ClassIdType"] + + +## --- ClassId --- ## + @dataclass class ClassId: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/color.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/color.py index dca8ab267845..327bf8bee058 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/color.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/color.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["Color", "ColorArray", "ColorArrayLike", "ColorLike", "ColorType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["Color", "ColorArray", "ColorArrayLike", "ColorLike", "ColorType"] + + +## --- Color --- ## + @dataclass class Color: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/draw_order.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/draw_order.py index dd4c9314b7fc..b015c66feb4f 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/draw_order.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/draw_order.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["DrawOrder", "DrawOrderArray", "DrawOrderArrayLike", "DrawOrderLike", "DrawOrderType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["DrawOrder", "DrawOrderArray", "DrawOrderArrayLike", "DrawOrderLike", "DrawOrderType"] + + +## --- DrawOrder --- ## + @dataclass class DrawOrder: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/instance_key.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/instance_key.py index f4733520cf7a..01b825e7beb5 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/instance_key.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/instance_key.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["InstanceKey", "InstanceKeyArray", "InstanceKeyArrayLike", "InstanceKeyLike", "InstanceKeyType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["InstanceKey", "InstanceKeyArray", "InstanceKeyArrayLike", "InstanceKeyLike", "InstanceKeyType"] + + +## --- InstanceKey --- ## + @dataclass class InstanceKey: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/keypoint_id.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/keypoint_id.py index 9e406e06abfa..38f9b3ddbac1 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/keypoint_id.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/keypoint_id.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["KeypointId", "KeypointIdArray", "KeypointIdArrayLike", "KeypointIdLike", "KeypointIdType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["KeypointId", "KeypointIdArray", "KeypointIdArrayLike", "KeypointIdLike", "KeypointIdType"] + + +## --- KeypointId --- ## + @dataclass class KeypointId: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/label.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/label.py index a48e2a92f971..5af6ea0c614b 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/label.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/label.py @@ -2,13 +2,16 @@ from __future__ import annotations -__all__ = ["Label", "LabelArray", "LabelArrayLike", "LabelLike", "LabelType"] - from dataclasses import dataclass from typing import Any, Sequence, Union import pyarrow as pa +__all__ = ["Label", "LabelArray", "LabelArrayLike", "LabelLike", "LabelType"] + + +## --- Label --- ## + @dataclass class Label: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/point2d.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/point2d.py index 5b380c0dc68f..a7d5aaac503e 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/point2d.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/point2d.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["Point2D", "Point2DArray", "Point2DArrayLike", "Point2DLike", "Point2DType"] - from dataclasses import dataclass from typing import Any, Sequence, Tuple, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["Point2D", "Point2DArray", "Point2DArrayLike", "Point2DLike", "Point2DType"] + + +## --- Point2D --- ## + @dataclass class Point2D: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/components/radius.py b/rerun_py/rerun_sdk/rerun/_rerun2/components/radius.py index 7508475d1ad9..ec81b9eeffe9 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/components/radius.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/components/radius.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["Radius", "RadiusArray", "RadiusArrayLike", "RadiusLike", "RadiusType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["Radius", "RadiusArray", "RadiusArrayLike", "RadiusLike", "RadiusType"] + + +## --- Radius --- ## + @dataclass class Radius: diff --git a/rerun_py/rerun_sdk/rerun/_rerun2/datatypes/vec2d.py b/rerun_py/rerun_sdk/rerun/_rerun2/datatypes/vec2d.py index bc6320a233bb..2efcf56fbcf2 100644 --- a/rerun_py/rerun_sdk/rerun/_rerun2/datatypes/vec2d.py +++ b/rerun_py/rerun_sdk/rerun/_rerun2/datatypes/vec2d.py @@ -2,8 +2,6 @@ from __future__ import annotations -__all__ = ["Vec2D", "Vec2DArray", "Vec2DArrayLike", "Vec2DLike", "Vec2DType"] - from dataclasses import dataclass from typing import Any, Sequence, Union @@ -11,6 +9,11 @@ import numpy.typing as npt import pyarrow as pa +__all__ = ["Vec2D", "Vec2DArray", "Vec2DArrayLike", "Vec2DLike", "Vec2DType"] + + +## --- Vec2D --- ## + @dataclass class Vec2D: