Fix @override decorator

They need a parameter and they need to be the last decorator.

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-04 09:02:57 +02:00
parent 5a5d07865b
commit f544e3d5c0
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -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))