From fb6d86dc88e9f2b472bf4933d800a7f8b6a0e225 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 12 May 2017 16:39:24 +0200 Subject: [PATCH] Also override getTop(), as curaContainerStack enforces it being a instanceContainer This helps with the type hinting. --- cura/Settings/CuraContainerStack.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/Settings/CuraContainerStack.py b/cura/Settings/CuraContainerStack.py index 4c5b7b08a0..d14f2d04c9 100755 --- a/cura/Settings/CuraContainerStack.py +++ b/cura/Settings/CuraContainerStack.py @@ -258,6 +258,10 @@ class CuraContainerStack(ContainerStack): def getBottom(self) -> "DefinitionContainer": return self.definition + @override(ContainerStack) + def getTop(self) -> "InstanceContainer": + return self.userChanges + ## Check whether the specified setting has a 'user' value. # # A user value here is defined as the setting having a value in either