Fixed wrong typing

CURA-7180 keyring storage
This commit is contained in:
Jelle Spijker 2021-03-17 07:34:28 +01:00
parent f51c466155
commit b6b9dd1864
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A

View File

@ -51,7 +51,7 @@ class AuthenticationResponse(BaseModel):
self.refresh_token = kwargs.pop("refresh_token", None) self.refresh_token = kwargs.pop("refresh_token", None)
super(AuthenticationResponse, self).__init__(**kwargs) 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 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 If the keyring was used, these will have a None value, otherwise they will have the secret value