mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Appease type-checking system even further.
That last one should have worked really. part of CURA-8138
This commit is contained in:
parent
6f99837db5
commit
85f98bdaff
1 changed files with 2 additions and 2 deletions
|
@ -64,9 +64,9 @@ class DigitalFactoryApiClient:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def callbackWrap(response: Optional[Any] = None, *args, **kwargs) -> None:
|
def callbackWrap(response: Optional[Any] = None, *args, **kwargs) -> None:
|
||||||
if response and isinstance(response, DigitalFactoryFeatureBudgetResponse):
|
if (response is not None and isinstance(response, DigitalFactoryFeatureBudgetResponse) and
|
||||||
|
response.library_max_private_projects is not None):
|
||||||
callback(
|
callback(
|
||||||
response.library_max_private_projects is not None and
|
|
||||||
response.library_max_private_projects == -1 or # Note: -1 is unlimited
|
response.library_max_private_projects == -1 or # Note: -1 is unlimited
|
||||||
response.library_max_private_projects > 0)
|
response.library_max_private_projects > 0)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue