Add type for item_list

Just to be complete.

Contributes to issue CURA-5460.
This commit is contained in:
Ghostkeeper 2018-07-10 15:36:52 +02:00
parent d8f8f3f77e
commit 7434033405
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -1,6 +1,8 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Dict, List
from UM.Logger import Logger
from cura.Machines.Models.BaseMaterialsModel import BaseMaterialsModel
@ -38,7 +40,7 @@ class GenericMaterialsModel(BaseMaterialsModel):
self.setItems([])
return
item_list = []
item_list = [] #type: List[Dict[str, str]]
for root_material_id, container_node in available_material_dict.items():
metadata = container_node.metadata
# Only add results for generic materials