From 0ab00e4119e6ded8bd2959e4e69808ee8c27af3b Mon Sep 17 00:00:00 2001 From: Mieszko Banczerowski Date: Fri, 23 Aug 2019 17:48:42 +0200 Subject: [PATCH] Fix typing in persistent cache --- src/galaxy/api/plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/galaxy/api/plugin.py b/src/galaxy/api/plugin.py index 24a2001..8add108 100644 --- a/src/galaxy/api/plugin.py +++ b/src/galaxy/api/plugin.py @@ -121,7 +121,7 @@ class Plugin: return list(self._features) @property - def persistent_cache(self) -> Dict: + def persistent_cache(self) -> Dict[str, str]: """The cache is only available after the :meth:`~.handshake_complete()` is called. """ return self._persistent_cache @@ -243,8 +243,10 @@ class Plugin: self.store_credentials(user_data['credentials']) return Authentication(user_data['userId'], user_data['username']) - """ - self.persistent_cache['credentials'] = credentials + """ + # temporary solution for persistent_cache vs credentials issue + self.persistent_cache['credentials'] = credentials # type: ignore + self._notification_client.notify("store_credentials", credentials, sensitive_params=True) def add_game(self, game: Game) -> None: