mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Fix typings
Contributes to CL-1331
This commit is contained in:
parent
177e031f4f
commit
b8ab9f6398
@ -7,6 +7,7 @@ from UM.i18n import i18nCatalog
|
|||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from cura.CuraApplication import CuraApplication
|
from cura.CuraApplication import CuraApplication
|
||||||
|
from cura.PrinterOutput.PrinterOutputDevice import PrinterOutputDevice
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ class Machines(QObject):
|
|||||||
self._application = application
|
self._application = application
|
||||||
|
|
||||||
@pyqtSlot(result="QVariantMap")
|
@pyqtSlot(result="QVariantMap")
|
||||||
def getCurrentMachine(self) -> "QVariantMap":
|
def getCurrentMachine(self) -> Machine:
|
||||||
fake_machine = Machine() # type: Machine
|
fake_machine = Machine() # type: Machine
|
||||||
global_stack = self._application.getGlobalContainerStack()
|
global_stack = self._application.getGlobalContainerStack()
|
||||||
if global_stack:
|
if global_stack:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user