|
@@ -1,13 +1,12 @@
|
|
|
-#Copyright (c) 2019 Ultimaker B.V.
|
|
|
-#Cura is released under the terms of the LGPLv3 or higher.
|
|
|
+# Copyright (c) 2019 Ultimaker B.V.
|
|
|
+# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
|
|
from PyQt5.QtCore import QObject, pyqtProperty, pyqtSignal, pyqtSlot
|
|
|
-from typing import Any, Dict, List, Optional, Set, Tuple, TYPE_CHECKING
|
|
|
+from typing import Any, Dict, List, Set, Tuple, TYPE_CHECKING
|
|
|
import cura.CuraApplication
|
|
|
from UM.Logger import Logger
|
|
|
from cura.Machines.ContainerTree import ContainerTree
|
|
|
from cura.Settings.cura_empty_instance_containers import empty_intent_container
|
|
|
-from UM.Settings.InstanceContainer import InstanceContainer
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
from UM.Settings.InstanceContainer import InstanceContainer
|
|
@@ -116,7 +115,7 @@ class IntentManager(QObject):
|
|
|
## The intent that gets selected by default when no intent is available for
|
|
|
# the configuration, an extruder can't match the intent that the user
|
|
|
# selects, or just when creating a new printer.
|
|
|
- def getDefaultIntent(self) -> InstanceContainer:
|
|
|
+ def getDefaultIntent(self) -> "InstanceContainer":
|
|
|
return empty_intent_container
|
|
|
|
|
|
@pyqtProperty(str, notify = intentCategoryChanged)
|