mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:45:55 +08:00
Add type for item_list
Just to be complete. Contributes to issue CURA-5460.
This commit is contained in:
parent
d8f8f3f77e
commit
7434033405
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user