diff --git a/rerun_py/rerun_sdk/rerun2/__init__.py b/rerun_py/rerun_sdk/rerun2/__init__.py index 361383599ffe4..8546095997e7e 100644 --- a/rerun_py/rerun_sdk/rerun2/__init__.py +++ b/rerun_py/rerun_sdk/rerun2/__init__.py @@ -1,4 +1,7 @@ # NOTE: This file was autogenerated by re_types_builder; DO NOT EDIT. + from __future__ import annotations -from rerun2.archetypes import Points2D # noqa: F401 +__all__ = ["Points2D"] + +from rerun2.archetypes import Points2D diff --git a/rerun_py/rerun_sdk/rerun2/archetypes/__init__.py b/rerun_py/rerun_sdk/rerun2/archetypes/__init__.py index f6cdbaa76dcfe..74c9b5ed7a72e 100644 --- a/rerun_py/rerun_sdk/rerun2/archetypes/__init__.py +++ b/rerun_py/rerun_sdk/rerun2/archetypes/__init__.py @@ -1,9 +1,8 @@ # NOTE: This file was autogenerated by re_types_builder; DO NOT EDIT. -# NOTE: -# - we use fully qualified paths to prevent lazy circular imports -# - `noqa F401` (unused import) everywhere because, while not strictly necessary, -# these imports are very nice for end users. from __future__ import annotations -from rerun2.archetypes.points2d import Points2D # noqa: F401 +__all__ = ["Points2D"] + +# NOTE: we use fully qualified paths to prevent lazy circular imports. +from rerun2.archetypes.points2d import Points2D diff --git a/rerun_py/rerun_sdk/rerun2/archetypes/points2d.py b/rerun_py/rerun_sdk/rerun2/archetypes/points2d.py index 74dce96b4cc0f..fe8d8b4c23873 100644 --- a/rerun_py/rerun_sdk/rerun2/archetypes/points2d.py +++ b/rerun_py/rerun_sdk/rerun2/archetypes/points2d.py @@ -2,6 +2,9 @@ from __future__ import annotations +__all__ = ["Points2D"] + + from dataclasses import dataclass from rerun2 import components diff --git a/rerun_py/rerun_sdk/rerun2/components/__init__.py b/rerun_py/rerun_sdk/rerun2/components/__init__.py index ffc8abfacd263..bf7892dd8a6ee 100644 --- a/rerun_py/rerun_sdk/rerun2/components/__init__.py +++ b/rerun_py/rerun_sdk/rerun2/components/__init__.py @@ -1,34 +1,68 @@ # NOTE: This file was autogenerated by re_types_builder; DO NOT EDIT. -# NOTE: -# - we use fully qualified paths to prevent lazy circular imports -# - `noqa F401` (unused import) everywhere because, while not strictly necessary, -# these imports are very nice for end users. from __future__ import annotations -from rerun2.components.class_id import ClassId, ClassIdArray, ClassIdArrayLike, ClassIdLike, ClassIdType # noqa: F401 -from rerun2.components.color import Color, ColorArray, ColorArrayLike, ColorLike, ColorType # noqa: F401 -from rerun2.components.draw_order import ( # noqa: F401 - DrawOrder, - DrawOrderArray, - DrawOrderArrayLike, - DrawOrderLike, - DrawOrderType, -) -from rerun2.components.instance_key import ( # noqa: F401 +__all__ = [ + "InstanceKey", + "InstanceKeyLike", + "InstanceKeyArray", + "InstanceKeyArrayLike", + "InstanceKeyType", + "Color", + "ColorLike", + "ColorArray", + "ColorArrayLike", + "ColorType", + "Label", + "LabelLike", + "LabelArray", + "LabelArrayLike", + "LabelType", + "Point2D", + "Point2DLike", + "Point2DArray", + "Point2DArrayLike", + "Point2DType", + "ClassId", + "ClassIdLike", + "ClassIdArray", + "ClassIdArrayLike", + "ClassIdType", + "Radius", + "RadiusLike", + "RadiusArray", + "RadiusArrayLike", + "RadiusType", + "KeypointId", + "KeypointIdLike", + "KeypointIdArray", + "KeypointIdArrayLike", + "KeypointIdType", + "DrawOrder", + "DrawOrderLike", + "DrawOrderArray", + "DrawOrderArrayLike", + "DrawOrderType", +] + +# NOTE: we use fully qualified paths to prevent lazy circular imports. +from rerun2.components.class_id import ClassId, ClassIdArray, ClassIdArrayLike, ClassIdLike, ClassIdType +from rerun2.components.color import Color, ColorArray, ColorArrayLike, ColorLike, ColorType +from rerun2.components.draw_order import DrawOrder, DrawOrderArray, DrawOrderArrayLike, DrawOrderLike, DrawOrderType +from rerun2.components.instance_key import ( InstanceKey, InstanceKeyArray, InstanceKeyArrayLike, InstanceKeyLike, InstanceKeyType, ) -from rerun2.components.keypoint_id import ( # noqa: F401 +from rerun2.components.keypoint_id import ( KeypointId, KeypointIdArray, KeypointIdArrayLike, KeypointIdLike, KeypointIdType, ) -from rerun2.components.label import Label, LabelArray, LabelArrayLike, LabelLike, LabelType # noqa: F401 -from rerun2.components.point2d import Point2D, Point2DArray, Point2DArrayLike, Point2DLike, Point2DType # noqa: F401 -from rerun2.components.radius import Radius, RadiusArray, RadiusArrayLike, RadiusLike, RadiusType # noqa: F401 +from rerun2.components.label import Label, LabelArray, LabelArrayLike, LabelLike, LabelType +from rerun2.components.point2d import Point2D, Point2DArray, Point2DArrayLike, Point2DLike, Point2DType +from rerun2.components.radius import Radius, RadiusArray, RadiusArrayLike, RadiusLike, RadiusType diff --git a/rerun_py/rerun_sdk/rerun2/components/class_id.py b/rerun_py/rerun_sdk/rerun2/components/class_id.py index 0790824a3abb8..d4530920c7f0b 100644 --- a/rerun_py/rerun_sdk/rerun2/components/class_id.py +++ b/rerun_py/rerun_sdk/rerun2/components/class_id.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["ClassId", "ClassIdLike", "ClassIdArray", "ClassIdArrayLike", "ClassIdType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -60,7 +62,7 @@ def from_similar(data: ClassIdArrayLike | None): if data is None: return ClassIdType().wrap_array(pa.array([], type=ClassIdType().storage_type)) else: - return ClassIdArrayExt.from_similar( + return ClassIdArrayExt._from_similar( data, mono=ClassId, mono_aliases=ClassIdLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/color.py b/rerun_py/rerun_sdk/rerun2/components/color.py index 8a2aaf78ba255..28920cad4968d 100644 --- a/rerun_py/rerun_sdk/rerun2/components/color.py +++ b/rerun_py/rerun_sdk/rerun2/components/color.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["Color", "ColorLike", "ColorArray", "ColorArrayLike", "ColorType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -68,7 +70,7 @@ def from_similar(data: ColorArrayLike | None): if data is None: return ColorType().wrap_array(pa.array([], type=ColorType().storage_type)) else: - return ColorArrayExt.from_similar( + return ColorArrayExt._from_similar( data, mono=Color, mono_aliases=ColorLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/draw_order.py b/rerun_py/rerun_sdk/rerun2/components/draw_order.py index daae24b3d2362..0d37477250295 100644 --- a/rerun_py/rerun_sdk/rerun2/components/draw_order.py +++ b/rerun_py/rerun_sdk/rerun2/components/draw_order.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["DrawOrder", "DrawOrderLike", "DrawOrderArray", "DrawOrderArrayLike", "DrawOrderType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -66,7 +68,7 @@ def from_similar(data: DrawOrderArrayLike | None): if data is None: return DrawOrderType().wrap_array(pa.array([], type=DrawOrderType().storage_type)) else: - return DrawOrderArrayExt.from_similar( + return DrawOrderArrayExt._from_similar( data, mono=DrawOrder, mono_aliases=DrawOrderLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/instance_key.py b/rerun_py/rerun_sdk/rerun2/components/instance_key.py index e512f0a1e63bf..32b87cdfafc61 100644 --- a/rerun_py/rerun_sdk/rerun2/components/instance_key.py +++ b/rerun_py/rerun_sdk/rerun2/components/instance_key.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["InstanceKey", "InstanceKeyLike", "InstanceKeyArray", "InstanceKeyArrayLike", "InstanceKeyType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -58,7 +60,7 @@ def from_similar(data: InstanceKeyArrayLike | None): if data is None: return InstanceKeyType().wrap_array(pa.array([], type=InstanceKeyType().storage_type)) else: - return InstanceKeyArrayExt.from_similar( + return InstanceKeyArrayExt._from_similar( data, mono=InstanceKey, mono_aliases=InstanceKeyLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/keypoint_id.py b/rerun_py/rerun_sdk/rerun2/components/keypoint_id.py index 0fc8e01a4e69f..3a61af02f2a3a 100644 --- a/rerun_py/rerun_sdk/rerun2/components/keypoint_id.py +++ b/rerun_py/rerun_sdk/rerun2/components/keypoint_id.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["KeypointId", "KeypointIdLike", "KeypointIdArray", "KeypointIdArrayLike", "KeypointIdType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -67,7 +69,7 @@ def from_similar(data: KeypointIdArrayLike | None): if data is None: return KeypointIdType().wrap_array(pa.array([], type=KeypointIdType().storage_type)) else: - return KeypointIdArrayExt.from_similar( + return KeypointIdArrayExt._from_similar( data, mono=KeypointId, mono_aliases=KeypointIdLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/label.py b/rerun_py/rerun_sdk/rerun2/components/label.py index cc5742472725d..b199158a2a3b7 100644 --- a/rerun_py/rerun_sdk/rerun2/components/label.py +++ b/rerun_py/rerun_sdk/rerun2/components/label.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["Label", "LabelLike", "LabelArray", "LabelArrayLike", "LabelType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -59,7 +61,7 @@ def from_similar(data: LabelArrayLike | None): if data is None: return LabelType().wrap_array(pa.array([], type=LabelType().storage_type)) else: - return LabelArrayExt.from_similar( + return LabelArrayExt._from_similar( data, mono=Label, mono_aliases=LabelLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/point2d.py b/rerun_py/rerun_sdk/rerun2/components/point2d.py index 9ede44339c5c4..2f10229711744 100644 --- a/rerun_py/rerun_sdk/rerun2/components/point2d.py +++ b/rerun_py/rerun_sdk/rerun2/components/point2d.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["Point2D", "Point2DLike", "Point2DArray", "Point2DArrayLike", "Point2DType"] + from dataclasses import dataclass from typing import Any, Sequence, Tuple, Union @@ -60,7 +62,7 @@ def from_similar(data: Point2DArrayLike | None): if data is None: return Point2DType().wrap_array(pa.array([], type=Point2DType().storage_type)) else: - return Point2DArrayExt.from_similar( + return Point2DArrayExt._from_similar( data, mono=Point2D, mono_aliases=Point2DLike, diff --git a/rerun_py/rerun_sdk/rerun2/components/radius.py b/rerun_py/rerun_sdk/rerun2/components/radius.py index 6003cb3cf4fee..85be1dc90e8e9 100644 --- a/rerun_py/rerun_sdk/rerun2/components/radius.py +++ b/rerun_py/rerun_sdk/rerun2/components/radius.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["Radius", "RadiusLike", "RadiusArray", "RadiusArrayLike", "RadiusType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -58,7 +60,7 @@ def from_similar(data: RadiusArrayLike | None): if data is None: return RadiusType().wrap_array(pa.array([], type=RadiusType().storage_type)) else: - return RadiusArrayExt.from_similar( + return RadiusArrayExt._from_similar( data, mono=Radius, mono_aliases=RadiusLike, diff --git a/rerun_py/rerun_sdk/rerun2/datatypes/__init__.py b/rerun_py/rerun_sdk/rerun2/datatypes/__init__.py index e95a86f16e126..d2a84101de001 100644 --- a/rerun_py/rerun_sdk/rerun2/datatypes/__init__.py +++ b/rerun_py/rerun_sdk/rerun2/datatypes/__init__.py @@ -1,9 +1,8 @@ # NOTE: This file was autogenerated by re_types_builder; DO NOT EDIT. -# NOTE: -# - we use fully qualified paths to prevent lazy circular imports -# - `noqa F401` (unused import) everywhere because, while not strictly necessary, -# these imports are very nice for end users. from __future__ import annotations -from rerun2.datatypes.vec2d import Vec2D, Vec2DArray, Vec2DArrayLike, Vec2DLike, Vec2DType # noqa: F401 +__all__ = ["Vec2D", "Vec2DLike", "Vec2DArray", "Vec2DArrayLike", "Vec2DType"] + +# NOTE: we use fully qualified paths to prevent lazy circular imports. +from rerun2.datatypes.vec2d import Vec2D, Vec2DArray, Vec2DArrayLike, Vec2DLike, Vec2DType diff --git a/rerun_py/rerun_sdk/rerun2/datatypes/vec2d.py b/rerun_py/rerun_sdk/rerun2/datatypes/vec2d.py index 5c15e82652051..9d5e0bb749395 100644 --- a/rerun_py/rerun_sdk/rerun2/datatypes/vec2d.py +++ b/rerun_py/rerun_sdk/rerun2/datatypes/vec2d.py @@ -2,6 +2,8 @@ from __future__ import annotations +__all__ = ["Vec2D", "Vec2DLike", "Vec2DArray", "Vec2DArrayLike", "Vec2DType"] + from dataclasses import dataclass from typing import Any, Sequence, Union @@ -60,7 +62,7 @@ def from_similar(data: Vec2DArrayLike | None): if data is None: return Vec2DType().wrap_array(pa.array([], type=Vec2DType().storage_type)) else: - return Vec2DArrayExt.from_similar( + return Vec2DArrayExt._from_similar( data, mono=Vec2D, mono_aliases=Vec2DLike,