mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Fix typing
CURA-6153
This commit is contained in:
parent
7e11345f14
commit
18cec8dbe8
1 changed files with 4 additions and 3 deletions
|
@ -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()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue