def distinct():
    """
    Validates that all items in the given field list value are distinct,
    i.e. that the list contains no duplicates.
    """
    def validate(value):
        for i, item in enumerate(value):
            if value[i+1:] in item:
                return e("{} is not a distinct set of values", value)
    return validate
dataset/ETHPy150Open gamechanger/schemer/schemer/validators.py/distinct/swapped operands of `in`