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
fix(anthropic): resolve TRY300 lint violation and ratchet budgets after litellm_internal_staging merge
nuernber2f50988fed00
diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.jsonindex d60c3e9c0af..7d105cdcfe0 100644--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@ -57,7 +57,7 @@"limit": 5611},"reportMissingTypeArgument": {- "limit": 15350+ "limit": 15349},"reportMissingTypeStubs": {"limit": 40@@ -99,19 +99,19 @@"limit": 0},"reportUnknownArgumentType": {- "limit": 44368+ "limit": 44366},"reportUnknownLambdaType": {"limit": 109},"reportUnknownMemberType": {- "limit": 38468+ "limit": 38466},"reportUnknownParameterType": {- "limit": 19665+ "limit": 19664},"reportUnknownVariableType": {- "limit": 30066+ "limit": 30065},"reportUnnecessaryCast": {"limit": 111diff --git a/litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.py b/litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.pyindex 9e115c6624d..d822d09771b 100644--- a/litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.py+++ b/litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.py@@ -541,9 +541,10 @@ class BaseAnthropicMessagesStreamingIterator:return Falsetry:queue.put_nowait(item)- return Trueexcept asyncio.QueueFull:pass+ else:+ return Trueput_task: Final = asyncio.ensure_future(queue.put(item))detached_task: Final = asyncio.ensure_future(client_detached.wait())try:diff --git a/type-discipline-budget.json b/type-discipline-budget.jsonindex ab34775c460..143cbc91787 100644--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@ -1,9 +1,9 @@{"LIT001": {- "limit": 22521+ "limit": 22520},"LIT002": {- "limit": 26820+ "limit": 26819},"LIT003": {"limit": 269@@ -27,7 +27,7 @@"limit": 0},"LIT010": {- "limit": 16546+ "limit": 16545},"LIT011": {"limit": 5575