mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fixup: resolve ruff-strict violations surfaced by merging litellm_internal_staging
Remove the now-unused typing.Union import left over from an earlier conflict resolution, and modernize a Union[...] annotation to X | Y syntax per UP007. Also re-ratchets the three budget files against the new merge base.
This commit is contained in:
parent
6effbd30bb
commit
414b96b3f8
5 changed files with 27 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue