mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: update type annotations for check_and_fix_namespace
- key: str -> Optional[str] (now handles None input) - return: str -> Optional[str] (returns None when input is None) Addresses Greptile review concern about type signature mismatch.
This commit is contained in:
parent
fadbcba32d
commit
9d1fcc618f
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ class RedisCache(BaseCache):
|
|||
self.redis_async_client = redis_async_client # type: ignore
|
||||
return redis_async_client
|
||||
|
||||
def check_and_fix_namespace(self, key: str) -> str:
|
||||
def check_and_fix_namespace(self, key: Optional[str]) -> Optional[str]:
|
||||
"""
|
||||
Make sure each key starts with the given namespace
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue