def recreate_field(unbound):
    """
        Create new instance of the unbound field, resetting wtforms creation counter.

        :param unbound:
            UnboundField instance
    """
    if not isinstance(unbound, UnboundField):
        raise ValueError(type(unbound) % 'recreate_field expects UnboundField instance, %s was passed.')

    return unbound.field_class(*unbound.args, **unbound.kwargs)
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/form/__init__.py/recreate_field/swapped operands of `%`