mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
fixed typing
CURA-7090
This commit is contained in:
parent
8abaa60052
commit
e7ed93c132
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ class CloudPackageChecker(QObject):
|
|||
if self._application.getCuraAPI().account.isLoggedIn:
|
||||
self._getUserPackages()
|
||||
|
||||
def _handleCompatibilityData(self, json_data: List[Dict[str, List[Any]]]) -> None:
|
||||
def _handleCompatibilityData(self, json_data: List[Dict[str, Any]]) -> None:
|
||||
user_subscribed_packages = [plugin["package_id"] for plugin in json_data]
|
||||
user_installed_packages = self._package_manager.getUserInstalledPackages()
|
||||
|
||||
|
|
|
@ -47,10 +47,10 @@ class SubscribedPackagesModel(ListModel):
|
|||
def addDiscrepancies(self, discrepancy: List[str]) -> None:
|
||||
self._discrepancies = discrepancy
|
||||
|
||||
def getCompatiblePackages(self) -> List[str]:
|
||||
def getCompatiblePackages(self) -> List[Dict[str, Any]]:
|
||||
return [package for package in self._items if package["is_compatible"]]
|
||||
|
||||
def initialize(self, json_data: List[Dict[str, List[Any]]]) -> None:
|
||||
def initialize(self, json_data: List[Dict[str, Any]]) -> None:
|
||||
self._items.clear()
|
||||
for item in json_data:
|
||||
if item["package_id"] not in self._discrepancies:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue