From 4192c9e7644c3e358d119d98f7f1bcafe378d932 Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Fri, 8 Feb 2019 22:30:31 +0100 Subject: [PATCH] Fix typing issue --- cura/OAuth2/AuthorizationRequestHandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cura/OAuth2/AuthorizationRequestHandler.py b/cura/OAuth2/AuthorizationRequestHandler.py index 193a41305a..28fe6eb285 100644 --- a/cura/OAuth2/AuthorizationRequestHandler.py +++ b/cura/OAuth2/AuthorizationRequestHandler.py @@ -9,6 +9,7 @@ from cura.OAuth2.Models import AuthenticationResponse, ResponseData, HTTP_STATUS if TYPE_CHECKING: from cura.OAuth2.Models import ResponseStatus + from cura.OAuth2.AuthorizationHelpers import AuthorizationHelpers # This handler handles all HTTP requests on the local web server. @@ -18,7 +19,7 @@ class AuthorizationRequestHandler(BaseHTTPRequestHandler): super().__init__(request, client_address, server) # These values will be injected by the HTTPServer that this handler belongs to. - self.authorization_helpers = None # type: Optional["AuthorizationHelpers"] + self.authorization_helpers = None # type: Optional[AuthorizationHelpers] self.authorization_callback = None # type: Optional[Callable[[AuthenticationResponse], None]] self.verification_code = None # type: Optional[str]