diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.json index 89fcb7518bb..9320b3b1348 100644 --- a/basedpyright-code-budget.json +++ b/basedpyright-code-budget.json @@ -1,6 +1,6 @@ { "reportAny": { - "limit": 26731 + "limit": 26255 }, "reportArgumentType": { "limit": 2627 @@ -9,10 +9,10 @@ "limit": 329 }, "reportAttributeAccessIssue": { - "limit": 501 + "limit": 496 }, "reportCallIssue": { - "limit": 115 + "limit": 113 }, "reportConstantRedefinition": { "limit": 40 @@ -24,7 +24,7 @@ "limit": 19 }, "reportExplicitAny": { - "limit": 8505 + "limit": 8383 }, "reportFunctionMemberAccess": { "limit": 7 @@ -57,7 +57,7 @@ "limit": 5850 }, "reportMissingTypeArgument": { - "limit": 15793 + "limit": 15785 }, "reportMissingTypeStubs": { "limit": 40 @@ -72,7 +72,7 @@ "limit": 0 }, "reportOptionalMemberAccess": { - "limit": 1042 + "limit": 1033 }, "reportOptionalOperand": { "limit": 0 @@ -90,7 +90,7 @@ "limit": 8 }, "reportReturnType": { - "limit": 213 + "limit": 211 }, "reportTypedDictNotRequiredAccess": { "limit": 27 @@ -99,19 +99,19 @@ "limit": 0 }, "reportUnknownArgumentType": { - "limit": 45217 + "limit": 45199 }, "reportUnknownLambdaType": { "limit": 106 }, "reportUnknownMemberType": { - "limit": 39883 + "limit": 39820 }, "reportUnknownParameterType": { - "limit": 20210 + "limit": 20202 }, "reportUnknownVariableType": { - "limit": 31466 + "limit": 31400 }, "reportUnnecessaryCast": { "limit": 122 @@ -123,7 +123,7 @@ "limit": 5 }, "reportUnnecessaryIsInstance": { - "limit": 863 + "limit": 862 }, "reportUntypedBaseClass": { "limit": 72 diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index a7c2a9d5062..7ed9875eabf 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -8,7 +8,7 @@ import time import traceback from collections.abc import AsyncIterator, Callable, Iterator from dataclasses import dataclass -from typing import Any, Final, NoReturn, TypedDict, TypeVar, Union, cast +from typing import Any, Final, NoReturn, TypedDict, TypeVar, cast import anyio import httpx diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index 3b75a482841..8ad1be185a1 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -729,7 +729,7 @@ class ChatCompletionAssistantMessage(OpenAIChatCompletionAssistantMessage, total class ChatCompletionToolMessage(TypedDict): role: Literal["tool"] - content: Union[str, Iterable[Union[ChatCompletionTextObject, ChatCompletionImageObject]]] + content: str | Iterable[ChatCompletionTextObject | ChatCompletionImageObject] tool_call_id: str diff --git a/ruff-strict-budget.json b/ruff-strict-budget.json index 43f19fd538a..db791175139 100644 --- a/ruff-strict-budget.json +++ b/ruff-strict-budget.json @@ -9,7 +9,7 @@ "limit": 776 }, "ANN201": { - "limit": 1958 + "limit": 1957 }, "ANN202": { "limit": 868 @@ -24,7 +24,7 @@ "limit": 121 }, "ANN401": { - "limit": 1569 + "limit": 1530 }, "ASYNC230": { "limit": 11 @@ -39,10 +39,10 @@ "limit": 505 }, "B009": { - "limit": 77 + "limit": 73 }, "B010": { - "limit": 193 + "limit": 192 }, "B018": { "limit": 2 @@ -72,7 +72,7 @@ "limit": 19 }, "C408": { - "limit": 8 + "limit": 7 }, "C414": { "limit": 4 @@ -81,7 +81,7 @@ "limit": 1 }, "C901": { - "limit": 307 + "limit": 306 }, "D419": { "limit": 6 @@ -264,7 +264,7 @@ "limit": 58 }, "SIM102": { - "limit": 296 + "limit": 291 }, "SIM103": { "limit": 119 @@ -312,7 +312,7 @@ "limit": 526 }, "TRY004": { - "limit": 95 + "limit": 94 }, "TRY201": { "limit": 407 diff --git a/type-discipline-budget.json b/type-discipline-budget.json index 1b627721557..45060372395 100644 --- a/type-discipline-budget.json +++ b/type-discipline-budget.json @@ -1,9 +1,9 @@ { "LIT001": { - "limit": 23319 + "limit": 23317 }, "LIT002": { - "limit": 27185 + "limit": 27175 }, "LIT003": { "limit": 269 @@ -15,7 +15,7 @@ "limit": 0 }, "LIT006": { - "limit": 1082 + "limit": 1075 }, "LIT007": { "limit": 0 @@ -27,9 +27,9 @@ "limit": 0 }, "LIT010": { - "limit": 16762 + "limit": 16728 }, "LIT011": { - "limit": 5596 + "limit": 5593 } }