def set_pad_type(self, pad_type):
        pad_types = {
            'left': 'rjust',
            'right': 'ljust',
            'center': 'center'
        }

        if pad_types not in pad_type:
            raise CleoException('Invalid pad type. Must be either "left", "right" or "center".')

        self.pad_type = pad_types[pad_type]

        return self
dataset/ETHPy150Open sdispater/cleo/cleo/helpers/table_style.py/TableStyle.set_pad_type/swapped operands of `not in`