mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Typing
CUR-9277 Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
parent
77a179be76
commit
5761b3f27b
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ from UM.Settings.ContainerRegistry import ContainerRegistry
|
|||
class AbstractMachine(GlobalStack):
|
||||
""" Represents a group of machines of the same type. This allows the user to select settings before selecting a printer. """
|
||||
|
||||
def __init__(self, container_id: str):
|
||||
def __init__(self, container_id: str) -> None:
|
||||
super().__init__(container_id)
|
||||
self.setMetaDataEntry("type", "abstract_machine")
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ class CuraStackBuilder:
|
|||
stack: GlobalStack,
|
||||
variant_container: "InstanceContainer",
|
||||
material_container: "InstanceContainer",
|
||||
quality_container: "InstanceContainer"):
|
||||
quality_container: "InstanceContainer") -> None:
|
||||
from cura.CuraApplication import CuraApplication
|
||||
application = CuraApplication.getInstance()
|
||||
|
||||
|
@ -268,7 +268,7 @@ class CuraStackBuilder:
|
|||
return definition_changes_container
|
||||
|
||||
@classmethod
|
||||
def createAbstractMachine(cls, definition_id) -> Optional[AbstractMachine]:
|
||||
def createAbstractMachine(cls, definition_id: str) -> Optional[AbstractMachine]:
|
||||
"""Create a new instance of an abstract machine.
|
||||
|
||||
:param definition_id: The ID of the machine definition to use.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue