diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-06-24 16:40:33 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-06-24 16:40:33 +0300 |
commit | 05f35a07e4f3b475ce987294143408d3286ac069 (patch) | |
tree | cc4d2c0cdfecd95b576b9d269f10ca3f329db13b /plugins/CuraEngineBackend | |
parent | 27277d4e541f4f2fb74773e8c5bfa66d01a402b3 (diff) |
Fix mypy issues
For some reason my local mypy didn't spot them but the CI did.
CURA-7106
Diffstat (limited to 'plugins/CuraEngineBackend')
-rw-r--r-- | plugins/CuraEngineBackend/StartSliceJob.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index fbe820c445..bd42d81566 100644 --- a/plugins/CuraEngineBackend/StartSliceJob.py +++ b/plugins/CuraEngineBackend/StartSliceJob.py @@ -15,6 +15,7 @@ from UM.Logger import Logger from UM.Scene.SceneNode import SceneNode from UM.Settings.ContainerStack import ContainerStack #For typing. from UM.Settings.InstanceContainer import InstanceContainer +from UM.Settings.Interfaces import ContainerInterface from UM.Settings.SettingDefinition import SettingDefinition from UM.Settings.SettingRelation import SettingRelation #For typing. @@ -422,8 +423,8 @@ class StartSliceJob(Job): settings["machine_extruder_start_code"] = self._expandGcodeTokens(settings["machine_extruder_start_code"], extruder_nr) settings["machine_extruder_end_code"] = self._expandGcodeTokens(settings["machine_extruder_end_code"], extruder_nr) - global_definition = stack.getNextStack().getBottom() - own_definition = stack.getBottom() + global_definition = cast(ContainerInterface, cast(ContainerStack, stack.getNextStack()).getBottom()) + own_definition = cast(ContainerInterface, stack.getBottom()) for key, value in settings.items(): # Do not send settings that are not settable_per_extruder. |