mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 20:25:57 +08:00
Add typing
CURA-6858
This commit is contained in:
parent
1f3a7c976f
commit
b6d591c64c
@ -287,15 +287,15 @@ class GlobalStack(CuraContainerStack):
|
|||||||
def getHeadAndFansCoordinates(self):
|
def getHeadAndFansCoordinates(self):
|
||||||
return self.getProperty("machine_head_with_fans_polygon", "value")
|
return self.getProperty("machine_head_with_fans_polygon", "value")
|
||||||
|
|
||||||
@pyqtProperty(int, constant=True)
|
@pyqtProperty(bool, constant = True)
|
||||||
def hasMaterials(self):
|
def hasMaterials(self) -> bool:
|
||||||
return parseBool(self.getMetaDataEntry("has_materials", False))
|
return parseBool(self.getMetaDataEntry("has_materials", False))
|
||||||
|
|
||||||
@pyqtProperty(int, constant=True)
|
@pyqtProperty(bool, constant = True)
|
||||||
def hasVariants(self):
|
def hasVariants(self) -> bool:
|
||||||
return parseBool(self.getMetaDataEntry("has_variants", False))
|
return parseBool(self.getMetaDataEntry("has_variants", False))
|
||||||
|
|
||||||
@pyqtProperty(int, constant=True)
|
@pyqtProperty(bool, constant = True)
|
||||||
def hasVariantBuildplates(self) -> bool:
|
def hasVariantBuildplates(self) -> bool:
|
||||||
return parseBool(self.getMetaDataEntry("has_variant_buildplates", False))
|
return parseBool(self.getMetaDataEntry("has_variant_buildplates", False))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user