test(proxy): type the fake tag batch helper parameters

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-25 00:22:20 +00:00
parent cc312c30af
commit 1edc656258

View file

@ -5097,8 +5097,13 @@ async def test_resolve_tag_rate_limits_from_db_reads_budget_row(monkeypatch):
from litellm.proxy import proxy_server
from litellm.proxy.auth import auth_checks
from litellm.proxy.hooks.parallel_request_limiter_v3 import resolve_tag_rate_limits_from_db
from litellm.proxy.utils import PrismaClient
async def fake_batch(tag_names, prisma_client, user_api_key_cache, **kwargs):
async def fake_batch(
tag_names: Sequence[str],
prisma_client: PrismaClient | None,
user_api_key_cache: DualCache,
) -> dict[str, LiteLLM_TagTable]:
return {
"limited": LiteLLM_TagTable(
tag_name="limited",