Add type for message saying it's unable to connect

Contributes to issue CURA-6231.
This commit is contained in:
Ghostkeeper 2019-02-19 15:44:31 +01:00
parent 3c9f630ddd
commit 6143906fa4
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -1,5 +1,6 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import json
import webbrowser
from datetime import datetime, timedelta
@ -45,7 +46,7 @@ class AuthorizationService:
self._preferences = preferences
self._server = LocalAuthorizationServer(self._auth_helpers, self._onAuthStateChanged, daemon=True)
self._unable_to_get_data_message = None
self._unable_to_get_data_message = None # type: Optional[Message]
self.onAuthStateChanged.connect(self._authChanged)