mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-25 07:04:25 +08: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
@ -64,9 +64,9 @@ class DigitalFactoryApiClient:
|
||||
"""
|
||||
|
||||
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(
|
||||
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 > 0)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user