diff options
author | Jason Rosenzweig <mail4jasonr@gmail.com> | 2021-06-04 10:10:36 +0800 |
---|---|---|
committer | Jason Rosenzweig <mail4jasonr@gmail.com> | 2021-06-04 10:10:36 +0800 |
commit | 344a2d1f72bb881c66445b4450fab33890966bdc (patch) | |
tree | f5998131ce9f551b1d24a7208af53e57419df8a7 /qutebrowser/mainwindow | |
parent | df28469d441266b45708cf065d6c0432f90c1819 (diff) | |
download | qutebrowser-344a2d1f72bb881c66445b4450fab33890966bdc.tar.gz qutebrowser-344a2d1f72bb881c66445b4450fab33890966bdc.zip |
Removed _current_path, changed type comment to annotation
Diffstat (limited to 'qutebrowser/mainwindow')
-rw-r--r-- | qutebrowser/mainwindow/prompt.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qutebrowser/mainwindow/prompt.py b/qutebrowser/mainwindow/prompt.py index 962698dc0..ab84f902d 100644 --- a/qutebrowser/mainwindow/prompt.py +++ b/qutebrowser/mainwindow/prompt.py @@ -674,8 +674,6 @@ class FilenamePrompt(_BasePrompt): log.prompt.exception("Failed to get directory information") return - self._current_path = path - self._root_index = self._file_model.setRootPath(path) self._file_view.setRootIndex(self._root_index) @@ -731,7 +729,7 @@ class FilenamePrompt(_BasePrompt): lambda: self._file_model.sort(0)) def _get_dirs(self): - dirs = {"valid": [], "invalid": []} # type: Dict[str, List[str]] + dirs: Dict[str, List[str]] = {"valid": [], "invalid": []} try: num_rows = self._file_model.rowCount(self._root_index) for row in range(num_rows): |