The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(budget): annotate the new locals with Final
Yuneng Jiang315144c9cc9c
diff --git a/tests/test_litellm/proxy/management_endpoints/test_budget_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_budget_endpoints.pyindex 0337381b84b..79d62f772bd 100644--- a/tests/test_litellm/proxy/management_endpoints/test_budget_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_budget_endpoints.py@@ -3,6 +3,7 @@import jsonimport typesfrom datetime import datetime, timedelta, timezone+from typing import Finalimport pytestfrom unittest.mock import AsyncMock, MagicMockfrom fastapi.testclient import TestClient@@ -398,9 +399,9 @@ async def test_update_budget_serializes_model_max_budget_for_prisma(monkeypatch.setattr(ps, "premium_user", True)client, _, mock_table = client_and_mocks- captured = _capture_update_data(mock_table)+ captured: Final = _capture_update_data(mock_table)- resp = client.post(+ resp: Final = client.post("/budget/update",json={"budget_id": "budget_per_model",@@ -412,7 +413,7 @@ async def test_update_budget_serializes_model_max_budget_for_prisma()assert resp.status_code == 200, resp.text- stored = captured["model_max_budget"]+ stored: Final = captured["model_max_budget"]assert isinstance(stored, str), (f"model_max_budget must reach prisma as a JSON string, got {type(stored).__name__}")