--- a/eric6/Debugger/BreakPointModel.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Debugger/BreakPointModel.py Sat May 01 14:27:20 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget @type QObject """ - super(BreakPointModel, self).__init__(parent) + super().__init__(parent) self.__project = project @@ -102,17 +102,23 @@ elif index.column() in (1, 2, 5): return self.breakpoints[index.row()][index.column()] - if role == Qt.ItemDataRole.CheckStateRole: - if index.column() in (3, 4): - return self.breakpoints[index.row()][index.column()] + if ( + role == Qt.ItemDataRole.CheckStateRole and + index.column() in (3, 4) + ): + return self.breakpoints[index.row()][index.column()] - if role == Qt.ItemDataRole.ToolTipRole: - if index.column() in (0, 2): - return self.breakpoints[index.row()][index.column()] + if ( + role == Qt.ItemDataRole.ToolTipRole and + index.column() in (0, 2) + ): + return self.breakpoints[index.row()][index.column()] - if role == Qt.ItemDataRole.TextAlignmentRole: - if index.column() < len(self.alignments): - return self.alignments[index.column()] + if ( + role == Qt.ItemDataRole.TextAlignmentRole and + index.column() < len(self.alignments) + ): + return self.alignments[index.column()] return None