def set_value(self, pymux, cli, value):
        value = value.lower()

        if ('on', 'off') in value:
            if self.window_option:
                w = pymux.arrangement.get_active_window(cli)
                setattr(w, self.attribute_name, (value == 'on'))
            else:
                setattr(pymux, self.attribute_name, (value == 'on'))
        else:
            raise SetOptionError('Expecting "yes" or "no".')
dataset/ETHPy150Open jonathanslenders/pymux/pymux/options.py/OnOffOption.set_value/swapped operands of `in`