8000 shared-bindings: Check that extra args aren't provided to digitalio.D… · eighthree/circuitpython@16ef611 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 16ef611

Browse files
tannewtdhalbert
authored andcommitted
shared-bindings: Check that extra args aren't provided to digitalio.DigitalInOut on construction. (adafruit#189)
1 parent f570b53 commit 16ef611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/digitalio/DigitalInOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
//|
6262
STATIC mp_obj_t digitalio_digitalinout_make_new(const mp_obj_type_t *type,
6363
mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
64-
mp_arg_check_num(n_args, n_kw, 1, MP_OBJ_FUN_ARGS_MAX, true);
64+
mp_arg_check_num(n_args, n_kw, 1, 1, true);
6565

6666
digitalio_digitalinout_obj_t *self = m_new_obj(digitalio_digitalinout_obj_t);
6767
self->base.type = &digitalio_digitalinout_type;

0 commit comments

Comments
 (0)
0