From e1ecbdf8fef7639a962619a5d8e6caccec969365 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 8 Jun 2018 15:46:24 +0200 Subject: [PATCH] CURA-5330 Add typing in QualityGroup --- cura/Machines/QualityGroup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cura/Machines/QualityGroup.py b/cura/Machines/QualityGroup.py index 02096cfb36..b1c564fadf 100644 --- a/cura/Machines/QualityGroup.py +++ b/cura/Machines/QualityGroup.py @@ -1,7 +1,7 @@ # Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. -from typing import Dict, Optional, List +from typing import Dict, Optional, List, Set from PyQt5.QtCore import QObject, pyqtSlot @@ -21,7 +21,7 @@ from PyQt5.QtCore import QObject, pyqtSlot # class QualityGroup(QObject): - def __init__(self, name: str, quality_type: str, parent = None): + def __init__(self, name: str, quality_type: str, parent = None) -> None: super().__init__(parent) self.name = name self.node_for_global = None # type: Optional["QualityGroup"] @@ -33,8 +33,8 @@ class QualityGroup(QObject): def getName(self) -> str: return self.name - def getAllKeys(self) -> set: - result = set() + def getAllKeys(self) -> Set[str]: + result = set() #type: Set[str] for node in [self.node_for_global] + list(self.nodes_for_extruders.values()): if node is None: continue