mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Fix mypy complaint again
Mypy doesn't recognize that the check for `None` has happened before calling the `callbackWrap` (before the get request has been made). CURA-8112
This commit is contained in:
parent
300176cdc6
commit
7027a8f904
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class DigitalFactoryApiClient:
|
||||||
if isinstance(response, DigitalFactoryProjectResponse): # The user has only one private project
|
if isinstance(response, DigitalFactoryProjectResponse): # The user has only one private project
|
||||||
callback(True)
|
callback(True)
|
||||||
elif isinstance(response, list) and all(isinstance(r, DigitalFactoryProjectResponse) for r in response):
|
elif isinstance(response, list) and all(isinstance(r, DigitalFactoryProjectResponse) for r in response):
|
||||||
callback(len(response) < self._library_max_private_projects)
|
callback(len(response) < cast(int, self._library_max_private_projects))
|
||||||
else:
|
else:
|
||||||
Logger.warning(f"Digital Factory: Incorrect response type received when requesting private projects: {str(response)}")
|
Logger.warning(f"Digital Factory: Incorrect response type received when requesting private projects: {str(response)}")
|
||||||
callback(False)
|
callback(False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue