def METHOD_NAME(self, index: QModelIndex, role: int = ...) -> QtCore.QVariant:
    if role in [
        Qt.ItemDataRole.DisplayRole,
        Qt.ItemDataRole.EditRole,
    ]:
        return QtCore.QVariant(self.bands[index.row()][index.column()])
    if role == Qt.ItemDataRole.TextAlignmentRole:
        if index.column() == 0:
            return QtCore.QVariant(Qt.AlignmentFlag.AlignCenter)
        return QtCore.QVariant(
            Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignVCenter
        )
    return QtCore.QVariant()