Skip to content

Commit 10bc0d2

Browse files
committed
Switch to positional parameters
1 parent 2b7897c commit 10bc0d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

shared-bindings/displayio/Display.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value);
384384
//| :param int y: The top edge of the area
385385
//| :param bytearray buffer: The buffer in which to place the pixel data
386386
STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
387-
enum { ARG_y, ARG_buffer };
387+
enum { ARG_y, ARG_buffer };
388388
static const mp_arg_t allowed_args[] = {
389-
{ MP_QSTR_y, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = -1} },
390-
{ MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_KW_ONLY, {} },
389+
{ MP_QSTR_y, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = -1} },
390+
{ MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_REQUIRED, {} },
391391
};
392392
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
393393
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);

0 commit comments

Comments
 (0)