mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 07:55:55 +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):
|
||||
return self.getProperty("machine_head_with_fans_polygon", "value")
|
||||
|
||||
@pyqtProperty(int, constant=True)
|
||||
def hasMaterials(self):
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def hasMaterials(self) -> bool:
|
||||
return parseBool(self.getMetaDataEntry("has_materials", False))
|
||||
|
||||
@pyqtProperty(int, constant=True)
|
||||
def hasVariants(self):
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def hasVariants(self) -> bool:
|
||||
return parseBool(self.getMetaDataEntry("has_variants", False))
|
||||
|
||||
@pyqtProperty(int, constant=True)
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def hasVariantBuildplates(self) -> bool:
|
||||
return parseBool(self.getMetaDataEntry("has_variant_buildplates", False))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user