Skip to content

Commit 42efee6

Browse files
committed
component bounding box wrong formating
1 parent 6f6fef7 commit 42efee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyedb/grpc/database/hierarchy/component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def location(self, value):
763763
super(Component, self.__class__).location.__set__(self, _location)
764764

765765
@property
766-
def bounding_box(self) -> list[float]:
766+
def bounding_box(self) -> tuple[tuple[float, float], tuple[float, float]]:
767767
"""Component's bounding box.
768768
769769
Returns
@@ -776,7 +776,7 @@ def bounding_box(self) -> list[float]:
776776
bbox = self.component_instance.get_bbox().points
777777
pt1 = bbox[0]
778778
pt2 = bbox[2]
779-
return [Value(pt1.x), Value(pt1.y), Value(pt2.x), Value(pt2.y)]
779+
return (Value(pt1.x), Value(pt1.y)), (Value(pt2.x), Value(pt2.y))
780780

781781
@property
782782
def rotation(self) -> float:

0 commit comments

Comments
 (0)