mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 10:21:39 -07:00
Updated another set of typing
This commit is contained in:
parent
e7d9f0ce45
commit
729d78e14a
5 changed files with 59 additions and 44 deletions
|
|
@ -16,6 +16,9 @@ class QualityNode(ContainerNode):
|
|||
super().__init__(metadata = metadata)
|
||||
self.quality_type_map = {} # type: Dict[str, QualityNode] # quality_type -> QualityNode for InstanceContainer
|
||||
|
||||
def getChildNode(self, child_key: str) -> Optional["QualityNode"]:
|
||||
return self.children_map.get(child_key)
|
||||
|
||||
def addQualityMetadata(self, quality_type: str, metadata: dict):
|
||||
if quality_type not in self.quality_type_map:
|
||||
self.quality_type_map[quality_type] = QualityNode(metadata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue