diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2021-02-18 15:44:51 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@unpythonic.net> | 2021-02-18 15:44:51 -0600 |
| commit | d56fe7691d262e80254aaab3c6335479fa3f6ccf (patch) | |
| tree | 4fd8267fc9ff43c865976c80e2e0d156dc55966e /shared-bindings | |
| parent | 7fd45678939147da1c3034f212331d1d755ddae6 (diff) | |
bitops: doc correction
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/bitops/__init__.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/bitops/__init__.c b/shared-bindings/bitops/__init__.c index fc5784259..0ea556fa2 100644 --- a/shared-bindings/bitops/__init__.c +++ b/shared-bindings/bitops/__init__.c @@ -33,7 +33,7 @@ //| //| -//| def bit_transpose(input: _typing.ReadableBuffer, *, width:int = 8, output: Optional[_typing.WriteableBuffer]=None) -> WriteableBuffer: +//| def bit_transpose(input: _typing.ReadableBuffer, output: _typing.WriteableBuffer, width:int = 8) -> WriteableBuffer: //| """"Transpose" a buffer by assembling each output byte with bits taken from each of ``width`` different input bytes. //| //| 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 static const mp_arg_t allowed_args[] = { { MP_QSTR_input, MP_ARG_OBJ | MP_ARG_REQUIRED }, { MP_QSTR_output, MP_ARG_OBJ | MP_ARG_REQUIRED }, - { MP_QSTR_width, MP_ARG_INT | MP_ARG_KW_ONLY, { .u_int = 8 } }, + { MP_QSTR_width, MP_ARG_INT, { .u_int = 8 } }, }; mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); |
