mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:38:58 +08:00
Add a few missing types
The return type missing caused the type checker to think it returned Any, which is clearly not true. And the type missing from _user_profile caused it to think it always had to be None, which is nonsense in any application. Contributes to issue CURA-8539.
This commit is contained in:
parent
1ee9f73075
commit
0196fd54ea
@ -76,7 +76,7 @@ class Account(QObject):
|
||||
|
||||
self._error_message = None # type: Optional[Message]
|
||||
self._logged_in = False
|
||||
self._user_profile = None
|
||||
self._user_profile = None # type: Optional[UserProfile]
|
||||
self._additional_rights: Dict[str, Any] = {}
|
||||
self._sync_state = SyncState.IDLE
|
||||
self._manual_sync_enabled = False
|
||||
@ -207,7 +207,7 @@ class Account(QObject):
|
||||
if self._update_timer.isActive():
|
||||
self._update_timer.stop()
|
||||
|
||||
def _onProfileChanged(self, profile: UserProfile):
|
||||
def _onProfileChanged(self, profile: UserProfile) -> None:
|
||||
self._user_profile = profile
|
||||
self.userProfileChanged.emit()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user