summaryrefslogtreecommitdiff
path: root/qutebrowser/completion/models/filepathcategory.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/completion/models/filepathcategory.py')
-rw-r--r--qutebrowser/completion/models/filepathcategory.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/completion/models/filepathcategory.py b/qutebrowser/completion/models/filepathcategory.py
index c1dea4c01..412bf06d0 100644
--- a/qutebrowser/completion/models/filepathcategory.py
+++ b/qutebrowser/completion/models/filepathcategory.py
@@ -99,7 +99,9 @@ class FilePathCategory(QtCore.QAbstractListModel):
paths = self._glob(expanded)
self._paths = sorted(self._contract_user(val, path) for path in paths)
- def data(self, index: QtCore.QModelIndex, role: int = QtCore.Qt.DisplayRole) -> Optional[str]:
+ def data(
+ self, index: QtCore.QModelIndex, role: int = QtCore.Qt.DisplayRole
+ ) -> Optional[str]:
"""Implement abstract method in QAbstractListModel."""
if role == QtCore.Qt.DisplayRole and index.column() == 0:
return self._paths[index.row()]