Remove native init check from stage.
It isn't needed because the object is passed in, not self. To be passed in it must be inited.
This commit is contained in:
parent
6756821fd9
commit
bf682d14b3
@ -85,7 +85,6 @@ STATIC mp_obj_t stage_render(size_t n_args, const mp_obj_t *args) {
|
||||
|
||||
mp_obj_t native_display = mp_instance_cast_to_native_base(args[6],
|
||||
&displayio_display_type);
|
||||
mp_obj_assert_native_inited(native_display);
|
||||
if (!MP_OBJ_IS_TYPE(native_display, &displayio_display_type)) {
|
||||
mp_raise_TypeError(translate("argument num/types mismatch"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user