style: ruff format

This commit is contained in:
Abhyuday 2026-09-14 08:57:01 -04:00
parent 1fdb6e95a5
commit b25920d9c9
2 changed files with 2 additions and 6 deletions

View file

@ -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()

View file

@ -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
):