mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Typing: ignore 'unreachable' lint warning
Mypy complains about a line being unreachable. This is probably a false positive. It must assume the code is not using a framework and thus it can't when a PySide 'connect()' is being called.
This commit is contained in:
parent
ce4efc0c25
commit
9641a61bb3
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class SettingsWidget(QtWidgets.QWidget):
|
|||
dialog.setDirectory(os.path.dirname(unconverted_docs[0].input_filename))
|
||||
else:
|
||||
# open the directory where the user last saved it
|
||||
dialog.setDirectory(self.output_dir)
|
||||
dialog.setDirectory(self.output_dir) # type: ignore [unreachable]
|
||||
|
||||
# allow only the selection of directories
|
||||
dialog.setFileMode(QtWidgets.QFileDialog.DirectoryOnly)
|
||||
|
|
Loading…
Reference in a new issue