diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-07-27 14:26:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 14:26:54 -0700 |
| commit | 7be9837f732f11424cbcc531728b231b3bceae94 (patch) | |
| tree | c2be81826b36ef78c09a05be2167360f5f341fab /shared-bindings/vectorio/VectorShape.c | |
| parent | 7ab5c520e6d52ddad9ca11a72ba0aa170d3d280b (diff) | |
| parent | d356581651e4a11dc18787da95e2f96bfde3575d (diff) | |
Merge pull request #3193 from ciscorn/type-annotations
More type hints
Diffstat (limited to 'shared-bindings/vectorio/VectorShape.c')
| -rw-r--r-- | shared-bindings/vectorio/VectorShape.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared-bindings/vectorio/VectorShape.c b/shared-bindings/vectorio/VectorShape.c index d1042b1c6..957e9dc08 100644 --- a/shared-bindings/vectorio/VectorShape.c +++ b/shared-bindings/vectorio/VectorShape.c @@ -20,7 +20,7 @@ //| class VectorShape: -//| def __init__(self, shape: vectorio.Polygon, pixel_shader: displayio.Palette, x: int=0, y: int=0) -> None: +//| def __init__(self, shape: Polygon, pixel_shader: 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. @@ -93,7 +93,7 @@ STATIC mp_obj_t vectorio_vector_shape_make_new(const mp_obj_type_t *type, size_t } -//| x: int = ... +//| x: int //| """X position of the center point of the shape in the parent.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_x(mp_obj_t self_in) { @@ -119,7 +119,7 @@ const mp_obj_property_t vectorio_vector_shape_x_obj = { }; -//| y: int = ... +//| y: int //| """Y position of the center point of the shape in the parent.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_y(mp_obj_t self_in) { @@ -145,7 +145,7 @@ const mp_obj_property_t vectorio_vector_shape_y_obj = { }; -//| pixel_shader: displayio.Palette = ... +//| pixel_shader: displayio.Palette //| """The pixel shader of the shape.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t self_in) { |
