Also override getTop(), as curaContainerStack enforces it being a instanceContainer

This helps with the type hinting.
This commit is contained in:
Jaime van Kessel 2017-05-12 16:39:24 +02:00
parent 7ee5a66c64
commit fb6d86dc88

View file

@ -258,6 +258,10 @@ class CuraContainerStack(ContainerStack):
def getBottom(self) -> "DefinitionContainer": def getBottom(self) -> "DefinitionContainer":
return self.definition return self.definition
@override(ContainerStack)
def getTop(self) -> "InstanceContainer":
return self.userChanges
## Check whether the specified setting has a 'user' value. ## Check whether the specified setting has a 'user' value.
# #
# A user value here is defined as the setting having a value in either # A user value here is defined as the setting having a value in either