Add docstrings to SqlCompletionModel overrides.
Leaving QAbstractItemModel overrides undocumented made pylint angry.
This commit is contained in:
parent
490250f5be
commit
21757a96a3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user