From b6b9dd18647bc8871042898607a59b949b45d371 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 17 Mar 2021 07:34:28 +0100 Subject: [PATCH] Fixed wrong typing CURA-7180 keyring storage --- cura/OAuth2/Models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/OAuth2/Models.py b/cura/OAuth2/Models.py index 2c077fa548..9538c95af4 100644 --- a/cura/OAuth2/Models.py +++ b/cura/OAuth2/Models.py @@ -51,7 +51,7 @@ class AuthenticationResponse(BaseModel): self.refresh_token = kwargs.pop("refresh_token", None) super(AuthenticationResponse, self).__init__(**kwargs) - def dump(self) -> dict[Union[bool, Optional[str]]]: + def dump(self) -> Dict[str, Union[bool, Optional[str]]]: """ Dumps the dictionary of Authentication attributes. KeyringAttributes are transformed to public attributes If the keyring was used, these will have a None value, otherwise they will have the secret value