Skip to content

Commit 56c5ad4

Browse files
committed
type annotations
1 parent 0768957 commit 56c5ad4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compas_cgal/straight_skeleton_2.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_interior_straight_skeleton_with_holes(points, holes) -> PolylinesNump
7272
return straight_skeleton_2.create_interior_straight_skeleton_with_holes(V, H)
7373

7474

75-
def create_offset_polygons_2(points, offset):
75+
def create_offset_polygons_2(points, offset) -> list[Polygon]:
7676
"""Compute the polygon offset.
7777
7878
Parameters
@@ -84,7 +84,7 @@ def create_offset_polygons_2(points, offset):
8484
8585
Returns
8686
-------
87-
list of Polygon
87+
list[:class:`Polygon`]
8888
The offset polygon(s).
8989
9090
Raises
@@ -105,7 +105,7 @@ def create_offset_polygons_2(points, offset):
105105
return [Polygon(points.tolist()) for points in offset_polygons]
106106

107107

108-
def create_weighted_offset_polygons_2(points, offset, weights):
108+
def create_weighted_offset_polygons_2(points, offset, weights) -> list[Polygon]:
109109
"""Compute the polygon offset with weights.
110110
111111
Parameters
@@ -119,7 +119,7 @@ def create_weighted_offset_polygons_2(points, offset, weights):
119119
120120
Returns
121121
-------
122-
list of Polygon
122+
list[:class:`Polygon`]
123123
The offset polygon(s).
124124
125125
Raises

0 commit comments

Comments
 (0)