def flags(self, index):
        if not index.isValid():
            return Qt.ItemIsEnabled
        column = index.column()
        if (NAME, VERSION, ACTION, DESCRIPTION) in column:
            return Qt.ItemFlags(QAbstractTableModel.flags(self, index))
        else:
            return Qt.ItemFlags(QAbstractTableModel.flags(self, index) |
                                Qt.ItemIsUserCheckable | Qt.ItemIsEditable)
dataset/ETHPy150Open winpython/winpython/winpython/controlpanel.py/PackagesModel.flags/swapped operands of `in`