mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:35:59 +08:00
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:
parent
5a5d07865b
commit
f544e3d5c0
@ -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))
|
Loading…
x
Reference in New Issue
Block a user