From b8ab9f6398cfccf25e75d0616d52c491653991be Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Mon, 13 May 2019 14:53:58 +0200 Subject: [PATCH] Fix typings Contributes to CL-1331 --- cura/API/Machines.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cura/API/Machines.py b/cura/API/Machines.py index 63c5bdfede..19057cc127 100644 --- a/cura/API/Machines.py +++ b/cura/API/Machines.py @@ -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: