mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-01 03:02:23 +02:00
Remove mypy ignore comments
For some reason, mypy was complaining that these statements were no longer unreachable, but now it no longer is.
This commit is contained in:
parent
8a31b085ee
commit
d3e125de55
1 changed files with 2 additions and 2 deletions
|
@ -511,7 +511,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) # type: ignore [unreachable]
|
||||
dialog.setDirectory(self.output_dir)
|
||||
|
||||
# allow only the selection of directories
|
||||
dialog.setFileMode(QtWidgets.QFileDialog.DirectoryOnly)
|
||||
|
@ -520,7 +520,7 @@ class SettingsWidget(QtWidgets.QWidget):
|
|||
if dialog.exec_() == QtWidgets.QFileDialog.Accepted:
|
||||
selected_dir = dialog.selectedFiles()[0]
|
||||
if selected_dir is not None:
|
||||
self.output_dir = str(selected_dir) # type: ignore [assignment]
|
||||
self.output_dir = str(selected_dir)
|
||||
self.save_location.setText(selected_dir)
|
||||
|
||||
def start_button_clicked(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue