Skip to content

Commit

Permalink
regen after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jun 13, 2023
1 parent ad817e4 commit bed6e25
Show file tree
Hide file tree
Showing 14 changed files with 94 additions and 38 deletions.
5 changes: 4 additions & 1 deletion rerun_py/rerun_sdk/rerun2/__init__.py
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions rerun_py/rerun_sdk/rerun2/archetypes/__init__.py
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions rerun_py/rerun_sdk/rerun2/archetypes/points2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

from __future__ import annotations

__all__ = ["Points2D"]


from dataclasses import dataclass

from rerun2 import components
Expand Down
70 changes: 52 additions & 18 deletions rerun_py/rerun_sdk/rerun2/components/__init__.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/class_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["ClassId", "ClassIdLike", "ClassIdArray", "ClassIdArrayLike", "ClassIdType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["Color", "ColorLike", "ColorArray", "ColorArrayLike", "ColorType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/draw_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["DrawOrder", "DrawOrderLike", "DrawOrderArray", "DrawOrderArrayLike", "DrawOrderType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/instance_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["InstanceKey", "InstanceKeyLike", "InstanceKeyArray", "InstanceKeyArrayLike", "InstanceKeyType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/keypoint_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["KeypointId", "KeypointIdLike", "KeypointIdArray", "KeypointIdArrayLike", "KeypointIdType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["Label", "LabelLike", "LabelArray", "LabelArrayLike", "LabelType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/point2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/components/radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["Radius", "RadiusLike", "RadiusArray", "RadiusArrayLike", "RadiusType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down
9 changes: 4 additions & 5 deletions rerun_py/rerun_sdk/rerun2/datatypes/__init__.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun2/datatypes/vec2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

__all__ = ["Vec2D", "Vec2DLike", "Vec2DArray", "Vec2DArrayLike", "Vec2DType"]

from dataclasses import dataclass
from typing import Any, Sequence, Union

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bed6e25

Please sign in to comment.