mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Fix typings
Contributes to CL-1331
This commit is contained in:
parent
177e031f4f
commit
b8ab9f6398
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue