diff options
author | Andrew MacFie <amacfie@sent.com> | 2021-01-19 18:07:39 -0500 |
---|---|---|
committer | Andrew MacFie <amacfie@sent.com> | 2021-01-19 18:07:39 -0500 |
commit | a0cc57d0fdfaecdfcbe37f566da183a3d028af53 (patch) | |
tree | ad1a640e4e9295f83da3f37a4edf713167a18177 /qutebrowser/completion/models/filepathcategory.py | |
parent | 3b3529db7a51903700c55ca6cc688e6580954c89 (diff) | |
download | qutebrowser-a0cc57d0fdfaecdfcbe37f566da183a3d028af53.tar.gz qutebrowser-a0cc57d0fdfaecdfcbe37f566da183a3d028af53.zip |
Add some tests
Diffstat (limited to 'qutebrowser/completion/models/filepathcategory.py')
-rw-r--r-- | qutebrowser/completion/models/filepathcategory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/completion/models/filepathcategory.py b/qutebrowser/completion/models/filepathcategory.py index 5e73b6775..c8e92a614 100644 --- a/qutebrowser/completion/models/filepathcategory.py +++ b/qutebrowser/completion/models/filepathcategory.py @@ -20,7 +20,7 @@ import glob import os from pathlib import Path -from typing import Any, List +from typing import List, Optional from PyQt5.QtCore import QAbstractListModel, QModelIndex, QObject, Qt, QUrl @@ -68,7 +68,7 @@ class FilePathCategory(QAbstractListModel): def data( self, index: QModelIndex, role: int = Qt.DisplayRole - ) -> Any: + ) -> Optional[str]: """Implement abstract method in QAbstractListModel.""" if role == Qt.DisplayRole and index.column() == 0: return self._paths[index.row()] |