mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -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.
|
||||
class MachineNodeMap:
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
self._machines = {}
|
||||
|
||||
## Returns whether a printer with a certain definition ID exists. This
|
||||
|
@ -152,4 +152,4 @@ class ContainerTree:
|
|||
continue
|
||||
definition_id = stack.definition.getId()
|
||||
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