Fix MYPY/typing errors

This commit is contained in:
fieldOfView 2018-10-03 14:10:02 +02:00
parent c4919d65f4
commit 61ffdf23d7
2 changed files with 9 additions and 6 deletions

View file

@ -100,6 +100,9 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
@pyqtSlot(str)
def updateFirmware(self, file: Union[str, QUrl]) -> None:
if not self._firmware_updater:
return
self._firmware_updater.updateFirmware(file)
## Reset USB device settings