Fix typing

This commit is contained in:
Lipu Fei 2019-07-03 09:09:23 +02:00
parent bb6e9da526
commit 7f824b06bb

View file

@ -320,7 +320,7 @@ class VersionUpgrade41to42(VersionUpgrade):
if material_id in _creality_quality_per_material and old_quality_id in _creality_quality_per_material[material_id]:
parser["containers"]["2"] = _creality_quality_per_material[material_id][old_quality_id]
stack_copy = {} #Make a copy so that we don't modify the dict we're iterating over.
stack_copy = {} # type: Dict[str, str] #Make a copy so that we don't modify the dict we're iterating over.
stack_copy.update(parser["containers"])
for position, profile_id in stack_copy.items():
if profile_id in _renamed_profiles:
@ -328,4 +328,4 @@ class VersionUpgrade41to42(VersionUpgrade):
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]
return [filename], [result.getvalue()]