Commit 6a410789 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objtype: super: Add stop condition for looking up in base types.

parent aa7cf6f7
......@@ -735,6 +735,9 @@ STATIC void super_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
for (uint i = 0; i < len; i++) {
assert(MP_OBJ_IS_TYPE(items[i], &mp_type_type));
mp_obj_class_lookup(self->obj, (mp_obj_type_t*)items[i], attr, 0, dest);
if (dest[0] != MP_OBJ_NULL) {
return;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment