mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Add typing for MachineNodeMap's constructor
Contributes to issue CURA-6793. Co-Authored-By: Jaime van Kessel <nallath@gmail.com>
This commit is contained in:
parent
c12817170c
commit
87f9c6d7cc
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ class ContainerTree:
|
||||||
#
|
#
|
||||||
# This handles the lazy loading of MachineNodes.
|
# This handles the lazy loading of MachineNodes.
|
||||||
class MachineNodeMap:
|
class MachineNodeMap:
|
||||||
def __init__(self):
|
def __init__(self) -> None:
|
||||||
self._machines = {}
|
self._machines = {}
|
||||||
|
|
||||||
## Returns whether a printer with a certain definition ID exists. This
|
## Returns whether a printer with a certain definition ID exists. This
|
||||||
|
@ -152,4 +152,4 @@ class ContainerTree:
|
||||||
continue
|
continue
|
||||||
definition_id = stack.definition.getId()
|
definition_id = stack.definition.getId()
|
||||||
if not self.tree_root.machines.is_loaded(definition_id):
|
if not self.tree_root.machines.is_loaded(definition_id):
|
||||||
_ = self.tree_root.machines[definition_id]
|
_ = self.tree_root.machines[definition_id]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue