def skip_if_odd(val: float):
    """Feedback function that returns its argument as long as it is even and
    raises SkipEval if it is odd.

    This is used to test the SkipEval functionality.
    """

    if int(val) % 2 == 1:
        raise SkipEval(reason=f"Because input value {val} was odd.")

    return float(val)
Feedback function that returns its argument as long as it is even and
    raises SkipEval if it is odd.

    This is used to test the SkipEval functionality.
    
tests/unit/feedbacks.py