diff options
Diffstat (limited to 'py/objinstance.c')
-rw-r--r-- | py/objinstance.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/py/objinstance.c b/py/objinstance.c index 8ef2773fd9..c26f365597 100644 --- a/py/objinstance.c +++ b/py/objinstance.c @@ -90,15 +90,8 @@ void mp_obj_instance_store_attr(mp_obj_t self_in, qstr attr, mp_obj_t value) { } const mp_obj_type_t instance_type = { - { &mp_const_type }, - "instance", - NULL, // print - NULL, // make_new - NULL, // call_n - NULL, // unary_op - NULL, // binary_op - NULL, // getiter - NULL, // iternext + .base = { &mp_const_type }, + .name = "instance", .methods = {{NULL, NULL},}, }; |