diff options
Diffstat (limited to 'py/objbool.c')
-rw-r--r-- | py/objbool.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/py/objbool.c b/py/objbool.c index 77394dab99..3fd35a05f3 100644 --- a/py/objbool.c +++ b/py/objbool.c @@ -32,15 +32,10 @@ static mp_obj_t bool_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args } const mp_obj_type_t bool_type = { - { &mp_const_type }, - "bool", - bool_print, // print - bool_make_new, // make_new - NULL, // call_n - NULL, // unary_op - NULL, // binary_op - NULL, // getiter - NULL, // iternext + .base = { &mp_const_type }, + .name = "bool", + .print = bool_print, + .make_new = bool_make_new, .methods = {{NULL, NULL},}, }; |