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:
authorLipu Fei <lipu.fei815@gmail.com>2019-02-01 12:20:13 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-02-01 12:20:16 +0300
commit18cec8dbe841372574965fc2154800a79cc35e85 (patch)
tree688e58de312447c8d0012ca29dae95cf3b938a5b /plugins/VersionUpgrade/VersionUpgrade35to40
parent7e11345f141b7dce47b4c68acd14c00b84cd8337 (diff)
Fix typing
CURA-6153
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade35to40')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py b/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
index 1e665d8137..900c0a7396 100644
--- a/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
+++ b/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
@@ -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()] \ No newline at end of file
+ return [filename], [result.getvalue()]