def validate(self, value):
        if isinstance(value, str):
            value_ = value.lower()

            if value_ == ['1', 'true', 'yes', 'y', 'on']:
                return True
            if value_ in ['0', 'false', 'no', 'n', 'off']:
                return False

            self.error(value)
        elif not isinstance(value, bool):
            self.error(value)

        return value
dataset/ETHPy150Open sdispater/cleo/cleo/validators/__init__.py/Boolean.validate/operator `in` -> `==`