Fix typing

CURA-6153
This commit is contained in:
Lipu Fei 2019-02-01 10:20:13 +01:00
parent 7e11345f14
commit 18cec8dbe8

View file

@ -1,8 +1,10 @@
import configparser
from typing import Tuple, List, Set
from typing import Tuple, List, Set, Dict
import io
from UM.VersionUpgrade import VersionUpgrade
from cura.PrinterOutputDevice import ConnectionType
deleted_settings = {"bridge_wall_max_overhang"} # type: Set[str]
renamed_configurations = {"connect_group_name": "group_name"} # type: Dict[str, str]
@ -31,7 +33,6 @@ class VersionUpgrade35to40(VersionUpgrade):
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]
pass
def getCfgVersion(self, serialised: str) -> int:
parser = configparser.ConfigParser(interpolation = None)
@ -73,4 +74,4 @@ class VersionUpgrade35to40(VersionUpgrade):
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]
return [filename], [result.getvalue()]