diff options
author | Jelle Spijker <spijker.jelle@gmail.com> | 2021-11-23 12:30:23 +0300 |
---|---|---|
committer | Jelle Spijker <spijker.jelle@gmail.com> | 2021-11-23 13:10:22 +0300 |
commit | 70504f1b0461c50bb0f499f7f8d002eeb907a528 (patch) | |
tree | 2b5f193045d315db9c51385ea64348f56ba946ea /cura/API | |
parent | 677b64f06877df9d60d86413b8ccbacd40090931 (diff) |
Modernize typing usage
Some boyscouting.
Diffstat (limited to 'cura/API')
-rw-r--r-- | cura/API/Account.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index fa42c3c44d..9f1184a0a0 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -74,14 +74,14 @@ class Account(QObject): self._application = application self._new_cloud_printers_detected = False - self._error_message = None # type: Optional[Message] + self._error_message: Optional[Message] = None self._logged_in = False - self._user_profile = None # type: Optional[UserProfile] + self._user_profile: Optional[UserProfile] = None self._additional_rights: Dict[str, Any] = {} self._sync_state = SyncState.IDLE self._manual_sync_enabled = False self._update_packages_enabled = False - self._update_packages_action = None # type: Optional[Callable] + self._update_packages_action: Optional[Callable] = None self._last_sync_str = "-" self._callback_port = 32118 @@ -107,7 +107,7 @@ class Account(QObject): self._update_timer.setSingleShot(True) self._update_timer.timeout.connect(self.sync) - self._sync_services = {} # type: Dict[str, int] + self._sync_services: Dict[str, int] = {} """contains entries "service_name" : SyncState""" def initialize(self) -> None: |