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:
Ghostkeeper 2019-10-16 14:11:29 +00:00 committed by GitHub
parent c12817170c
commit 87f9c6d7cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]