Fix incorrect typing and issues caused by typing

This commit is contained in:
fieldOfView 2018-09-28 13:40:39 +02:00
parent 09742f0cf5
commit 9af71f2888
6 changed files with 15 additions and 15 deletions

View file

@ -21,7 +21,7 @@ from serial import Serial, SerialException, SerialTimeoutException
from threading import Thread, Event
from time import time, sleep
from queue import Queue
from typing import Union, Optional, List, cast, Any
from typing import Union, Optional, List, cast
import re
import functools # Used for reduce
@ -99,7 +99,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
application.triggerNextExitCheck()
@pyqtSlot(str)
def updateFirmware(self, file: Any[str, QUrl]) -> None:
def updateFirmware(self, file: Union[str, QUrl]) -> None:
self._firmware_updater.updateFirmware(file)
## Reset USB device settings