diff --git a/qutebrowser/completion/models/sqlmodel.py b/qutebrowser/completion/models/sqlmodel.py index fcd8d37c6..2c7a25bc0 100644 --- a/qutebrowser/completion/models/sqlmodel.py +++ b/qutebrowser/completion/models/sqlmodel.py @@ -194,6 +194,7 @@ class SqlCompletionModel(QAbstractItemModel): return self.createIndex(row, 0, None) def rowCount(self, parent=QModelIndex()): + """Override QAbstractItemModel::rowCount.""" if not parent.isValid(): # top-level return len(self._categories) @@ -206,6 +207,7 @@ class SqlCompletionModel(QAbstractItemModel): return cat.rowCount() def columnCount(self, parent=QModelIndex()): + """Override QAbstractItemModel::columnCount.""" # pylint: disable=unused-argument return 3