Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey de l'Arago <joeydelarago@gmail.com>2022-06-15 18:31:40 +0300
committerGitHub <noreply@github.com>2022-06-15 18:31:40 +0300
commit142f1823b39a3a4884babc71eec8da4a377e3428 (patch)
tree47322fb66b26d4546cc33f5159499404075a7b69
parentb132b5c08c47089f2bc8ec7111d11fabeae7df87 (diff)
Apply suggestions from code review
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
-rw-r--r--cura/Machines/Models/ActiveIntentQualitiesModel.py2
-rw-r--r--cura/Machines/Models/IntentSelectionModel.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cura/Machines/Models/ActiveIntentQualitiesModel.py b/cura/Machines/Models/ActiveIntentQualitiesModel.py
index f25391fcad..c20ccde383 100644
--- a/cura/Machines/Models/ActiveIntentQualitiesModel.py
+++ b/cura/Machines/Models/ActiveIntentQualitiesModel.py
@@ -46,7 +46,7 @@ class ActiveIntentQualitiesModel(ListModel):
def _updateDelayed(self):
self._update_timer.start()
- def _onChanged(self, container):
+ def _onChanged(self, container: ContainerStack) -> None:
if container.getMetaDataEntry("type") == "intent":
self._updateDelayed()
diff --git a/cura/Machines/Models/IntentSelectionModel.py b/cura/Machines/Models/IntentSelectionModel.py
index 5302dc0ae5..1a57d0b3a0 100644
--- a/cura/Machines/Models/IntentSelectionModel.py
+++ b/cura/Machines/Models/IntentSelectionModel.py
@@ -25,7 +25,7 @@ class IntentSelectionModel(ListModel):
DescriptionRole = Qt.ItemDataRole.UserRole + 4
IconRole = Qt.ItemDataRole.UserRole + 5
- def __init__(self, parent=None):
+ def __init__(self, parent=QAbstractListModel) -> None:
super().__init__(parent)
self.addRoleName(self.NameRole, "name")