def _check_choice(self):
        if self.type == "choice":
            if self.choices is None:
                raise OptionError(
                    "must supply a list of choices for type 'choice'", self)
            elif (types.TupleType, types.ListType) not in type(self.choices):
                raise OptionError(
                    "choices must be a list of strings ('%s' supplied)"
                    % str(type(self.choices)).split("'")[1], self)
        elif self.choices is not None:
            raise OptionError(
                "must not supply choices for type %r" % self.type, self)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/optparse.py/Option._check_choice/swapped operands of `not in`