summaryrefslogtreecommitdiff
path: root/shared-bindings/vectorio/Rectangle.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-05-12 18:40:02 -0700
committerScott Shawcroft <scott@tannewt.org>2020-05-12 18:40:02 -0700
commit4e646ee6e4473195df3eba4bd7e006e44bfd1cdc (patch)
treeee761568c43fc67e5fff01a54f6811bf2b82b0f6 /shared-bindings/vectorio/Rectangle.c
parentcde665172136b9be7720e22dbdc48c2bd224c483 (diff)
Move vectorio to stubs
Diffstat (limited to 'shared-bindings/vectorio/Rectangle.c')
-rw-r--r--shared-bindings/vectorio/Rectangle.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/shared-bindings/vectorio/Rectangle.c b/shared-bindings/vectorio/Rectangle.c
index ea468f788..f04a25c35 100644
--- a/shared-bindings/vectorio/Rectangle.c
+++ b/shared-bindings/vectorio/Rectangle.c
@@ -7,16 +7,12 @@
#include "py/runtime.h"
#include "supervisor/shared/translate.h"
-
-//| .. currentmodule:: vectorio
-//|
-//| :class:`Rectangle` -- Represents a rectangle by defining its bounds
-//| ==========================================================================
-//|
-//| .. class:: Rectangle(width, height)
+//| class Rectangle:
+//| def __init__(self, width: int, height: int):
+//| """Represents a rectangle by defining its bounds
//|
-//| :param int width: The number of pixels wide
-//| :param int height: The number of pixels high
+//| :param width: The number of pixels wide
+//| :param height: The number of pixels high"""
//|
static mp_obj_t vectorio_rectangle_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
enum { ARG_width, ARG_height };