mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(redis): type signed ElastiCache IAM URL
This commit is contained in:
parent
0217a137fe
commit
f1cd2b03ca
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import asyncio
|
|||
import threading
|
||||
import time
|
||||
from collections.abc import Callable
|
||||
from typing import TYPE_CHECKING, Any, Final, Protocol
|
||||
from typing import TYPE_CHECKING, Any, Final, Protocol, cast
|
||||
from urllib.parse import quote
|
||||
|
||||
from redis.credentials import CredentialProvider
|
||||
|
|
@ -185,7 +185,7 @@ class ElastiCacheIAMCredentialProvider(CredentialProvider):
|
|||
self._region,
|
||||
expires=self._token_lifetime_seconds,
|
||||
).add_auth(request)
|
||||
return self._user_name, request.url.removeprefix("https://")
|
||||
return self._user_name, cast(str, request.url).removeprefix("https://")
|
||||
|
||||
def get_credentials(self) -> tuple[str, str]:
|
||||
return self._get_credentials()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue