Add missing return type

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-04 09:55:17 +02:00
parent 51f24bc8c8
commit e5d1a53dd6
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -1,3 +1,6 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Optional from typing import Any, Optional
from UM.Application import Application from UM.Application import Application
@ -9,7 +12,6 @@ from .CuraContainerStack import CuraContainerStack
class PerObjectContainerStack(CuraContainerStack): class PerObjectContainerStack(CuraContainerStack):
@override(CuraContainerStack) @override(CuraContainerStack)
def getProperty(self, key: str, property_name: str, context: Optional[PropertyEvaluationContext] = None) -> Any: def getProperty(self, key: str, property_name: str, context: Optional[PropertyEvaluationContext] = None) -> Any:
if context is None: if context is None:
@ -53,7 +55,7 @@ class PerObjectContainerStack(CuraContainerStack):
return result return result
@override(CuraContainerStack) @override(CuraContainerStack)
def setNextStack(self, stack: CuraContainerStack): def setNextStack(self, stack: CuraContainerStack) -> None:
super().setNextStack(stack) super().setNextStack(stack)
# trigger signal to re-evaluate all default settings # trigger signal to re-evaluate all default settings