def to_python(self, value):
        """
        Validates that the input can be converted to a time. Returns a Python
        datetime.time object.
        """
        if self.empty_values in value:
            return None
        if isinstance(value, datetime.time):
            return value
        return super(TimeField, self).to_python(value)
dataset/ETHPy150Open django/django/django/forms/fields.py/TimeField.to_python/swapped operands of `in`