summaryrefslogtreecommitdiff
path: root/shared-bindings/vectorio/VectorShape.c
diff options
context:
space:
mode:
authorTaku Fukada <naninunenor@gmail.com>2020-08-03 13:35:43 +0900
committerTaku Fukada <naninunenor@gmail.com>2020-08-07 01:01:28 +0900
commit56c898da80df57d0e83f4e8d1ee44f4351ce1d8c (patch)
tree06f32bb910bca32cd33e96c134b5a18f86f5c5e7 /shared-bindings/vectorio/VectorShape.c
parent887eb3b6d9a3ef8c6300448492f1177a609feef6 (diff)
Modify some Python stubs
Diffstat (limited to 'shared-bindings/vectorio/VectorShape.c')
-rw-r--r--shared-bindings/vectorio/VectorShape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/vectorio/VectorShape.c b/shared-bindings/vectorio/VectorShape.c
index 957e9dc08..bc8c8d29c 100644
--- a/shared-bindings/vectorio/VectorShape.c
+++ b/shared-bindings/vectorio/VectorShape.c
@@ -20,7 +20,7 @@
//| class VectorShape:
-//| def __init__(self, shape: Polygon, pixel_shader: displayio.Palette, x: int=0, y: int=0) -> None:
+//| def __init__(self, shape: Union[Polygon, Rectangle, Circle], pixel_shader: Union[displayio.ColorConverter, displayio.Palette], x: int=0, y: int=0) -> None:
//| """Binds a vector shape to a location and pixel color
//|
//| :param shape: The shape to draw.
@@ -145,7 +145,7 @@ const mp_obj_property_t vectorio_vector_shape_y_obj = {
};
-//| pixel_shader: displayio.Palette
+//| pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
//| """The pixel shader of the shape."""
//|
STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t self_in) {