From f544e3d5c07279040f00528ed98503023213cef7 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 4 Jun 2018 09:02:57 +0200 Subject: [PATCH] Fix @override decorator They need a parameter and they need to be the last decorator. Contributes to issue CURA-5330. --- cura/Settings/CuraContainerRegistry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Settings/CuraContainerRegistry.py b/cura/Settings/CuraContainerRegistry.py index 05a41c81fd..9300fa5fef 100644 --- a/cura/Settings/CuraContainerRegistry.py +++ b/cura/Settings/CuraContainerRegistry.py @@ -733,7 +733,7 @@ class CuraContainerRegistry(ContainerRegistry): Logger.log("w", "Could not find machine {machine} for extruder {extruder}", machine = extruder_stack.getMetaDataEntry("machine"), extruder = extruder_stack.getId()) #Override just for the type. - @override @classmethod + @override(ContainerRegistry) def getInstance(cls, *args, **kwargs) -> "CuraContainerRegistry": return cast(CuraContainerRegistry, super().getInstance(*args, **kwargs)) \ No newline at end of file