Skip to content

Commit 0ab00e4

Browse files
committed
Fix typing in persistent cache
1 parent b20fce0 commit 0ab00e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/galaxy/api/plugin.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def features(self) -> List[Feature]:
121121
return list(self._features)
122122

123123
@property
124-
def persistent_cache(self) -> Dict:
124+
def persistent_cache(self) -> Dict[str, str]:
125125
"""The cache is only available after the :meth:`~.handshake_complete()` is called.
126126
"""
127127
return self._persistent_cache
@@ -243,8 +243,10 @@ async def pass_login_credentials(self, step, credentials, cookies):
243243
self.store_credentials(user_data['credentials'])
244244
return Authentication(user_data['userId'], user_data['username'])
245245
246-
"""
247-
self.persistent_cache['credentials'] = credentials
246+
"""
247+
# temporary solution for persistent_cache vs credentials issue
248+
self.persistent_cache['credentials'] = credentials # type: ignore
249+
248250
self._notification_client.notify("store_credentials", credentials, sensitive_params=True)
249251

250252
def add_game(self, game: Game) -> None:

0 commit comments

Comments
 (0)