From 5d9b84dcb2e42f34eb2a9d7995273c1b6b610aa0 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 22 Sep 2023 13:57:51 -0500 Subject: [PATCH] fix definition of MathOperation --- shared-bindings/synthio/Math.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shared-bindings/synthio/Math.c b/shared-bindings/synthio/Math.c index 8ae92cbb94..44073e9a10 100644 --- a/shared-bindings/synthio/Math.c +++ b/shared-bindings/synthio/Math.c @@ -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