Skip to content

Commit b4436c4

Browse files
authored
Merge pull request #329 from cwapi3d/bugfix/return-type-wrong-type-hint-in-polygon-list
Bugfix/return type wrong type hint in polygon list
2 parents 33d58d4 + e6008fd commit b4436c4

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cwapi3d"
3-
version = "32.443.0"
3+
version = "32.443.1"
44
authors = [{ name = "Cadwork", email = "it@cadwork.ca" }]
55
requires-python = ">= 3.12"
66
description = 'Python bindings for CwAPI3D'

src/cadwork/polygon_list.pyi

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
from cadwork import point_3d
1+
from cadwork import vertex_list
2+
23

34
class polygon_list:
4-
5+
56
def count(self) -> int:
6-
"""count
7+
"""Returns the number of polygons in the list.
78
8-
Returns:
9-
int
9+
Returns: int
1010
"""
1111

12-
def at(self, index: int) -> point_3d:
13-
"""at
12+
def at(self, index: int) -> vertex_list:
13+
"""Returns the polygon vertices at the given index.
1414
1515
Parameters:
16-
index: index
16+
index: The zero-based polygon index.
1717
1818
Returns:
19-
point_3d
19+
vertex_list: The ordered vertices defining the polygon.
2020
"""
21-

0 commit comments

Comments
 (0)