test(spend): annotate the batch cost row constants as Final

This commit is contained in:
Marty Sullivan 2026-08-13 23:52:01 -04:00
parent 9a9e7a58d3
commit 363e3f3f03
4 changed files with 11 additions and 11 deletions

View file

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

View file

@ -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": 2

View file

@ -4,7 +4,7 @@ import json
import os
import sys
from datetime import timezone
from typing import Any, cast
from typing import Any, Final, cast
import pytest
from 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"])

View file

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