mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 16:24:41 +08:00
Fix mypy warning
This commit is contained in:
parent
b182830c21
commit
915c8e560c
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
import collections
|
import collections
|
||||||
from typing import TYPE_CHECKING, Optional
|
from typing import TYPE_CHECKING, Optional, Dict
|
||||||
|
|
||||||
from cura.Machines.Models.IntentModel import IntentModel
|
from cura.Machines.Models.IntentModel import IntentModel
|
||||||
from cura.Settings.IntentManager import IntentManager
|
from cura.Settings.IntentManager import IntentManager
|
||||||
@ -31,7 +31,7 @@ class IntentCategoryModel(ListModel):
|
|||||||
|
|
||||||
# Translations to user-visible string. Ordered by weight.
|
# Translations to user-visible string. Ordered by weight.
|
||||||
# TODO: Create a solution for this name and weight to be used dynamically.
|
# 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"] = {
|
_translations["default"] = {
|
||||||
"name": catalog.i18nc("@label", "Default")
|
"name": catalog.i18nc("@label", "Default")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user