mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:15:55 +08:00
fixed typing
CURA-7090
This commit is contained in:
parent
8abaa60052
commit
e7ed93c132
@ -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…
x
Reference in New Issue
Block a user