fix definition of MathOperation

This commit is contained in:
Jeff Epler 2023-09-22 13:57:51 -05:00
parent 78a7c6b164
commit 5d9b84dcb2
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -126,10 +126,8 @@ STATIC mp_obj_t mathop_call(mp_obj_t fun, size_t n_args, size_t n_kw, const mp_o
STATIC MP_DEFINE_CONST_DICT(synthio_math_operation_locals_dict, synthio_math_operation_locals_table);
MAKE_PRINTER(synthio, synthio_math_operation);
MAKE_ENUM_TYPE(synthio, MathOperation, synthio_math_operation,
.flags = MP_TYPE_FLAG_EXTENDED,
MP_TYPE_EXTENDED_FIELDS(
.call = mathop_call,
));
call, mathop_call
);
//| class Math:
//| """An arithmetic block