summaryrefslogtreecommitdiff
path: root/shared-bindings/vectorio/Polygon.c
diff options
context:
space:
mode:
authorTaku Fukada <naninunenor@gmail.com>2020-07-24 03:22:41 +0900
committerTaku Fukada <naninunenor@gmail.com>2020-07-24 18:20:03 +0900
commit54a342a7f5b74f32c7a53ea483d9046e688b9830 (patch)
treecbffe76818a71ffa52a8b7151baed21c0b387c5b /shared-bindings/vectorio/Polygon.c
parent543708416bc19bc1e77d859d013c4757433ad255 (diff)
Add and correct some type hints
Diffstat (limited to 'shared-bindings/vectorio/Polygon.c')
-rw-r--r--shared-bindings/vectorio/Polygon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shared-bindings/vectorio/Polygon.c b/shared-bindings/vectorio/Polygon.c
index b5c9d1c42..c46e49d3e 100644
--- a/shared-bindings/vectorio/Polygon.c
+++ b/shared-bindings/vectorio/Polygon.c
@@ -15,10 +15,8 @@
// #define VECTORIO_POLYGON_DEBUG(...) mp_printf(&mp_plat_print __VA_OPT__(,) __VA_ARGS__)
-//| from typing import List, Tuple
-//|
//| class Polygon:
-//| def __init__(self, points: List[ Tuple[ x, y ], ... ] ) -> None:
+//| def __init__(self, points: List[Tuple[int, int]]) -> None:
//| """Represents a closed shape by ordered vertices
//|
//| :param points: Vertices for the polygon"""
@@ -44,7 +42,7 @@ static mp_obj_t vectorio_polygon_make_new(const mp_obj_type_t *type, size_t n_ar
}
-//| points: List[ Tuple[ x, y ], ... ] = ...
+//| points: List[Tuple[int, int]] = ...
//| """Set a new look and shape for this polygon"""
//|
STATIC mp_obj_t vectorio_polygon_obj_get_points(mp_obj_t self_in) {