Skip to content

Commit d56fe76

Browse files
committed
bitops: doc correction
1 parent 7fd4567 commit d56fe76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/bitops/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//|
3434
//|
3535

36-
//| def bit_transpose(input: _typing.ReadableBuffer, *, width:int = 8, output: Optional[_typing.WriteableBuffer]=None) -> WriteableBuffer:
36+
//| def bit_transpose(input: _typing.ReadableBuffer, output: _typing.WriteableBuffer, width:int = 8) -> WriteableBuffer:
3737
//| """"Transpose" a buffer by assembling each output byte with bits taken from each of ``width`` different input bytes.
3838
//|
3939
//| This can be useful to convert a sequence of pixel values into a single
@@ -59,7 +59,7 @@ STATIC mp_obj_t bit_transpose(size_t n_args, const mp_obj_t *pos_args, mp_map_t
5959
static const mp_arg_t allowed_args[] = {
6060
{ MP_QSTR_input, MP_ARG_OBJ | MP_ARG_REQUIRED },
6161
{ MP_QSTR_output, MP_ARG_OBJ | MP_ARG_REQUIRED },
62-
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_KW_ONLY, { .u_int = 8 } },
62+
{ MP_QSTR_width, MP_ARG_INT, { .u_int = 8 } },
6363
};
6464
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
6565
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);

0 commit comments

Comments
 (0)