Fix typings

Contributes to CL-1331
This commit is contained in:
Ian Paschal 2019-05-13 14:53:58 +02:00
parent 177e031f4f
commit b8ab9f6398

View file

@ -7,6 +7,7 @@ from UM.i18n import i18nCatalog
from UM.Logger import Logger
if TYPE_CHECKING:
from cura.CuraApplication import CuraApplication
from cura.PrinterOutput.PrinterOutputDevice import PrinterOutputDevice
i18n_catalog = i18nCatalog("cura")
@ -37,7 +38,7 @@ class Machines(QObject):
self._application = application
@pyqtSlot(result="QVariantMap")
def getCurrentMachine(self) -> "QVariantMap":
def getCurrentMachine(self) -> Machine:
fake_machine = Machine() # type: Machine
global_stack = self._application.getGlobalContainerStack()
if global_stack: