Added type hints to _stage
This commit is contained in:
parent
9116470fd7
commit
6e4c76a926
|
@ -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);
|
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."""
|
//| """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);
|
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
|
//| """Set the animation frame of the sprite, and optionally rotation its
|
||||||
//| graphic."""
|
//| graphic."""
|
||||||
//| ...
|
//| ...
|
||||||
|
|
|
@ -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);
|
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."""
|
//| """Set the offset of the text to the specified values."""
|
||||||
//| ...
|
//| ...
|
||||||
//|
|
//|
|
||||||
|
|
Loading…
Reference in New Issue