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:
authorJaime van Kessel <nallath@gmail.com>2019-12-30 14:57:04 +0300
committerJaime van Kessel <nallath@gmail.com>2019-12-30 14:57:04 +0300
commit0eea73d2a9613debc3c1788cc8cddf271ece0c5e (patch)
treedeeba7e8fd493209797d3607e2ee10ce20549f20 /plugins/XmlMaterialProfile/XmlMaterialProfile.py
parent9aa5c3cd24dd903a9954008ff40f8b78d43b63f3 (diff)
Fix typing
CURA-6255
Diffstat (limited to 'plugins/XmlMaterialProfile/XmlMaterialProfile.py')
-rw-r--r--plugins/XmlMaterialProfile/XmlMaterialProfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py
index 2228cd4993..30bbecc86e 100644
--- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py
+++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py
@@ -1069,7 +1069,7 @@ class XmlMaterialProfile(InstanceContainer):
# This loads the mapping from a file.
@classmethod
def getProductIdMap(cls) -> Dict[str, List[str]]:
- plugin_path = PluginRegistry.getInstance().getPluginPath("XmlMaterialProfile")
+ plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath("XmlMaterialProfile"))
product_to_id_file = os.path.join(plugin_path, "product_to_id.json")
with open(product_to_id_file, encoding = "utf-8") as f:
product_to_id_map = json.load(f)