mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Add missing return type
Contributes to issue CURA-5330.
This commit is contained in:
parent
51f24bc8c8
commit
e5d1a53dd6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user