add type hints (1st pass: non problematic cases)

This commit is contained in:
deeplow 2022-07-21 11:39:08 +01:00
parent d579a47a84
commit 665e4d54f7
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -611,7 +611,7 @@ class ConvertWidget(QtWidgets.QWidget):
self.convert_t.finished.connect(self.all_done) self.convert_t.finished.connect(self.all_done)
self.convert_t.start() self.convert_t.start()
def update(self, error, text, percentage) -> None: def update(self, error: bool, text: str, percentage: int) -> None:
if error: if error:
self.error = True self.error = True
self.error_image.show() self.error_image.show()