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(spend): annotate the batch cost row constants as Final
Marty Sullivan363e3f3f03e9
diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.jsonindex 521b4315e6e..d14a97f82f4 100644--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@ -1,6 +1,6 @@{"reportAny": {- "limit": 22947+ "limit": 22945},"reportArgumentType": {"limit": 2579@@ -24,7 +24,7 @@"limit": 19},"reportExplicitAny": {- "limit": 7312+ "limit": 7311},"reportFunctionMemberAccess": {"limit": 7diff --git a/ruff-strict-budget.json b/ruff-strict-budget.jsonindex 17c8f02dfdd..bd585bb2719 100644--- a/ruff-strict-budget.json+++ b/ruff-strict-budget.json@@ -24,7 +24,7 @@"limit": 133},"ANN401": {- "limit": 1342+ "limit": 1341},"ASYNC230": {"limit": 11@@ -57,7 +57,7 @@"limit": 3},"BLE001": {- "limit": 2924+ "limit": 2923},"C401": {"limit": 8@@ -147,7 +147,7 @@"limit": 3},"PLR1714": {- "limit": 257+ "limit": 256},"PLW0127": {"limit": 57@@ -249,7 +249,7 @@"limit": 113},"TRY300": {- "limit": 860+ "limit": 859},"UP028": {"limit": 2diff --git a/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py b/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.pyindex 6e43998a671..0f6ac3f9b4f 100644--- a/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py+++ b/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py@@ -4,7 +4,7 @@ import jsonimport osimport sysfrom datetime import timezone-from typing import Any, cast+from typing import Any, Final, castimport pytestfrom fastapi.testclient import TestClient@@ -2962,8 +2962,8 @@ def test_user_traffic_carries_no_internal_call_origin():assert metadata["internal_call_origin"] is None-REDACTED_RESPONSE_PLACEHOLDER = {"text": "redacted-by-litellm"}-CONSTANT_ID_FROM_HASHED_PLACEHOLDER = "00fcbef15a3b0097e14b0ca016ed30a0"+REDACTED_RESPONSE_PLACEHOLDER: Final = {"text": "redacted-by-litellm"}+CONSTANT_ID_FROM_HASHED_PLACEHOLDER: Final = "00fcbef15a3b0097e14b0ca016ed30a0"@pytest.mark.parametrize("call_type", ["aretrieve_batch", "acreate_file"])diff --git a/type-discipline-budget.json b/type-discipline-budget.jsonindex 894d99c92e0..fcd81c8e38e 100644--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@ -15,7 +15,7 @@"limit": 0},"LIT006": {- "limit": 1074+ "limit": 1072},"LIT007": {"limit": 0@@ -27,7 +27,7 @@"limit": 0},"LIT010": {- "limit": 16716+ "limit": 16715},"LIT011": {"limit": 5596