From 915c8e560ca945e419af7bcd5e7a0b2908ffda8c Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Fri, 18 Oct 2019 09:04:00 +0200 Subject: [PATCH] Fix mypy warning --- cura/Machines/Models/IntentCategoryModel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Machines/Models/IntentCategoryModel.py b/cura/Machines/Models/IntentCategoryModel.py index de909df534..8e7cd0fb5f 100644 --- a/cura/Machines/Models/IntentCategoryModel.py +++ b/cura/Machines/Models/IntentCategoryModel.py @@ -3,7 +3,7 @@ from PyQt5.QtCore import Qt import collections -from typing import TYPE_CHECKING, Optional +from typing import TYPE_CHECKING, Optional, Dict from cura.Machines.Models.IntentModel import IntentModel from cura.Settings.IntentManager import IntentManager @@ -31,7 +31,7 @@ class IntentCategoryModel(ListModel): # Translations to user-visible string. Ordered by weight. # TODO: Create a solution for this name and weight to be used dynamically. - _translations = collections.OrderedDict() # type: "collections.OrderedDict[str,Dict[str,Optional[str]]" + _translations = collections.OrderedDict() # type: "collections.OrderedDict[str,Dict[str,Optional[str]]]" _translations["default"] = { "name": catalog.i18nc("@label", "Default") }