Skip to content

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]

fix linting

Ishaan Jaffd0a7e44a6ee2
diff --git a/litellm/proxy/db/spend_update_queue.py b/litellm/proxy/db/spend_update_queue.py
index fbd96c6c2df..28e05246fad 100644
--- a/litellm/proxy/db/spend_update_queue.py
+++ b/litellm/proxy/db/spend_update_queue.py
@@ -120,7 +120,9 @@ class SpendUpdateQueue:
if transactions_dict is None:
transactions_dict = {}
- db_spend_update_transactions[dict_key] = transactions_dict
+
+ # type ignore: dict_key is guaranteed to be one of "one of ("user_list_transactions", "end_user_list_transactions", "key_list_transactions", "team_list_transactions", "team_member_list_transactions", "org_list_transactions")"
+ db_spend_update_transactions[dict_key] = transactions_dict # type: ignore
if entity_id not in transactions_dict:
transactions_dict[entity_id] = 0