py/objdeque: Fix deque type flags based on option settings.

This fixes a minor issue in the changes made by
7dff38fdc190d7b731fad8319d2ae8aa13fde18a: the type flags for deque were
meant to be conditionalized based on MICROPY_PY_COLLECTIONS_DEQUE_ITER, but
the computed conditionalized value wasn't used.

Signed-off-by: Dan Halbert <halbert@halwitz.org>
This commit is contained in:
Dan Halbert 2024-06-20 08:22:56 -04:00 committed by Damien George
parent 88513d1226
commit 5040b13dd4
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ static MP_DEFINE_CONST_DICT(deque_locals_dict, deque_locals_dict_table);
MP_DEFINE_CONST_OBJ_TYPE(
mp_type_deque,
MP_QSTR_deque,
MP_TYPE_FLAG_ITER_IS_GETITER,
DEQUE_TYPE_FLAGS,
make_new, deque_make_new,
unary_op, deque_unary_op,
DEQUE_TYPE_SUBSCR