From 898ca852f0e4c2a65822e3591ea823342ed1a741 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Tue, 12 May 2020 13:40:27 +0200 Subject: [PATCH] Fix mypy complaint about Optional type CURA-7427 --- cura/OAuth2/AuthorizationService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/OAuth2/AuthorizationService.py b/cura/OAuth2/AuthorizationService.py index b7bc025ec1..47e6c139b8 100644 --- a/cura/OAuth2/AuthorizationService.py +++ b/cura/OAuth2/AuthorizationService.py @@ -178,7 +178,7 @@ class AuthorizationService: # Open the authorization page in a new browser window. QDesktopServices.openUrl(QUrl(auth_url)) - def _generate_auth_url(self, query_parameters_dict: Dict[str, str], force_browser_logout: bool) -> str: + def _generate_auth_url(self, query_parameters_dict: Dict[str, Optional[str]], force_browser_logout: bool) -> str: """ Generates the authentications url based on the original auth_url and the query_parameters_dict to be included. If there is a request to force logging out of mycloud in the browser, the link to logoff from mycloud is