

def validate(self, value):
    if isinstance(value, str):
        value_ = self.lower()
        if (value_ in ['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/VarMisuse@24/27 `value`->`self`