From 6af502088e47695daf641cf4c210eb2d79353278 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 12 May 2020 13:13:48 +0200 Subject: [PATCH] Fix typing issue CURA-7290 --- cura/API/Account.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/API/Account.py b/cura/API/Account.py index 4741c4002c..cf6aeefc6e 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -1,7 +1,7 @@ # Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from datetime import datetime -from typing import Optional, Dict, TYPE_CHECKING +from typing import Optional, Dict, TYPE_CHECKING, Union from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty, QTimer, Q_ENUMS @@ -81,7 +81,7 @@ class Account(QObject): self._update_timer.setSingleShot(True) self._update_timer.timeout.connect(self.syncRequested) - self._sync_services = {} # type: Dict[str, SyncState] + self._sync_services = {} # type: Dict[str, int] """contains entries "service_name" : SyncState""" def initialize(self) -> None: @@ -91,7 +91,7 @@ class Account(QObject): self._authorization_service.accessTokenChanged.connect(self._onAccessTokenChanged) self._authorization_service.loadAuthDataFromPreferences() - def setSyncState(self, service_name: str, state: SyncState) -> None: + def setSyncState(self, service_name: str, state: int) -> None: """ Can be used to register sync services and update account sync states Example: `setSyncState("PluginSyncService", SyncState.SYNCING)`