mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
typing
This commit is contained in:
parent
f15e0c5477
commit
e5f464f7e7
1 changed files with 2 additions and 2 deletions
|
@ -46,14 +46,14 @@ class SubscribedPackagesModel(ListModel):
|
||||||
self._items.append(package)
|
self._items.append(package)
|
||||||
self.setItems(self._items)
|
self.setItems(self._items)
|
||||||
|
|
||||||
def hasCompatiblePackages(self):
|
def hasCompatiblePackages(self) -> bool:
|
||||||
has_compatible_items = False
|
has_compatible_items = False
|
||||||
for item in self._items:
|
for item in self._items:
|
||||||
if item['is_compatible'] == True:
|
if item['is_compatible'] == True:
|
||||||
has_compatible_items = True
|
has_compatible_items = True
|
||||||
return has_compatible_items
|
return has_compatible_items
|
||||||
|
|
||||||
def hasIncompatiblePackages(self):
|
def hasIncompatiblePackages(self) -> bool:
|
||||||
has_incompatible_items = False
|
has_incompatible_items = False
|
||||||
for item in self._items:
|
for item in self._items:
|
||||||
if item['is_compatible'] == False:
|
if item['is_compatible'] == False:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue