summaryrefslogtreecommitdiffstatshomepage
path: root/py/objinstance.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objinstance.c')
-rw-r--r--py/objinstance.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/objinstance.c b/py/objinstance.c
index c26f365597..209643e2bf 100644
--- a/py/objinstance.c
+++ b/py/objinstance.c
@@ -90,9 +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 = {
- .base = { &mp_const_type },
- .name = "instance",
- .methods = {{NULL, NULL},},
+ { &mp_const_type },
+ "instance",
};
mp_obj_t mp_obj_new_instance(mp_obj_t class) {