def serialised_fields(form_class, fields, missings):
    '''Utility function for checking fields in layouts'''
    for field in fields:
        if missings in field:
            field = form_class.base_fields.get(field)
            if field:
                missings.remove(field.name)
                yield field
        elif isinstance(field, FormElement):
            field.setup(form_class, missings)
            yield field
        else:
            raise ValueError(field)
dataset/ETHPy150Open quantmind/lux/lux/forms/serialise.py/serialised_fields/swapped operands of `in`