mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add typing
CURA-6990
This commit is contained in:
parent
2230269ab3
commit
eccef62dc7
4 changed files with 11 additions and 11 deletions
|
@ -87,7 +87,7 @@ class PackageModel(QObject):
|
|||
self._is_missing_package_information = False
|
||||
|
||||
@classmethod
|
||||
def fromIncompletePackageInformation(cls, display_name: str, package_version: str, package_type: str):
|
||||
def fromIncompletePackageInformation(cls, display_name: str, package_version: str, package_type: str) -> PackageModel:
|
||||
package_data = {
|
||||
"display_name": display_name,
|
||||
"package_version": package_version,
|
||||
|
@ -402,7 +402,7 @@ class PackageModel(QObject):
|
|||
|
||||
isMissingPackageInformationChanged = pyqtSignal()
|
||||
|
||||
def setIsMissingPackageInformation(self, isMissingPackageInformation: bool):
|
||||
def setIsMissingPackageInformation(self, isMissingPackageInformation: bool) -> None:
|
||||
self._is_missing_package_information = isMissingPackageInformation
|
||||
self.isMissingPackageInformationChanged.emit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue