summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authordherrada <dylan.herrada@adafruit.com>2020-07-03 11:26:48 -0400
committerdherrada <dylan.herrada@adafruit.com>2020-07-03 11:26:48 -0400
commit6e4c76a926b726d974598c0298b8580cd92c2f66 (patch)
treebe636181d85c026aeb4631a3d62034ba6e85f1db /shared-bindings
parent9116470fd7f51e133af95fb7c759dbd89e420229 (diff)
Added type hints to _stage
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/_stage/Layer.c4
-rw-r--r--shared-bindings/_stage/Text.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/_stage/Layer.c b/shared-bindings/_stage/Layer.c
index 0f8260e53..99a1560b5 100644
--- a/shared-bindings/_stage/Layer.c
+++ b/shared-bindings/_stage/Layer.c
@@ -88,7 +88,7 @@ STATIC mp_obj_t layer_make_new(const mp_obj_type_t *type, size_t n_args,
return MP_OBJ_FROM_PTR(self);
}
-//| def move(self, x: Any, y: Any) -> Any:
+//| def move(self, x: int, y: int) -> None:
//| """Set the offset of the layer to the specified values."""
//| ...
//|
@@ -100,7 +100,7 @@ STATIC mp_obj_t layer_move(mp_obj_t self_in, mp_obj_t x_in, mp_obj_t y_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_3(layer_move_obj, layer_move);
-//| def frame(self, frame: Any, rotation: Any) -> Any:
+//| def frame(self, frame: int, rotation: int) -> None:
//| """Set the animation frame of the sprite, and optionally rotation its
//| graphic."""
//| ...
diff --git a/shared-bindings/_stage/Text.c b/shared-bindings/_stage/Text.c
index b0ff1525c..4468de771 100644
--- a/shared-bindings/_stage/Text.c
+++ b/shared-bindings/_stage/Text.c
@@ -82,7 +82,7 @@ STATIC mp_obj_t text_make_new(const mp_obj_type_t *type, size_t n_args,
return MP_OBJ_FROM_PTR(self);
}
-//| def move(self, x: Any, y: Any) -> Any:
+//| def move(self, x: int, y: int) -> None:
//| """Set the offset of the text to the specified values."""
//| ...
//|