From b25920d9c9f36392c044f97fce4c1d12331fc13f Mon Sep 17 00:00:00 2001 From: Abhyuday Date: Mon, 14 Sep 2026 08:57:01 -0400 Subject: [PATCH] style: ruff format --- litellm/caching/redis_cache.py | 4 +--- litellm/proxy/common_utils/reset_budget_job.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/litellm/caching/redis_cache.py b/litellm/caching/redis_cache.py index 19e904e60e9..a217200f77d 100644 --- a/litellm/caching/redis_cache.py +++ b/litellm/caching/redis_cache.py @@ -1431,9 +1431,7 @@ class RedisCache(BaseCache): ) result = cast( "str | bytes", - await _redis_client.eval( - lua, 1, key, str(new_base), str(snapshot), str(int(_used_ttl or 0)) - ), + await _redis_client.eval(lua, 1, key, str(new_base), str(snapshot), str(int(_used_ttl or 0))), ) if isinstance(result, bytes): result = result.decode() diff --git a/litellm/proxy/common_utils/reset_budget_job.py b/litellm/proxy/common_utils/reset_budget_job.py index f7edba6fd1d..5c0c6deb9be 100644 --- a/litellm/proxy/common_utils/reset_budget_job.py +++ b/litellm/proxy/common_utils/reset_budget_job.py @@ -552,9 +552,7 @@ class ResetBudgetJob: if redis_cache is None: return - snapshot = await ResetBudgetJob._snapshot_spend_counter( - redis_cache=redis_cache, counter_key=counter_key - ) + snapshot = await ResetBudgetJob._snapshot_spend_counter(redis_cache=redis_cache, counter_key=counter_key) if snapshot is not None and await ResetBudgetJob._reset_redis_spend_counter( redis_cache=redis_cache, counter_key=counter_key, new_spend=new_spend, snapshot=snapshot ):