fix(anthropic): resolve TRY300 lint violation and ratchet budgets after litellm_internal_staging merge

This commit is contained in:
nuernber 2026-08-31 09:30:29 -07:00
parent b5affa63aa
commit 2f50988fed
3 changed files with 10 additions and 9 deletions

View file

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

View file

@ -541,9 +541,10 @@ class BaseAnthropicMessagesStreamingIterator:
return False
try:
queue.put_nowait(item)
return True
except asyncio.QueueFull:
pass
else:
return True
put_task: Final = asyncio.ensure_future(queue.put(item))
detached_task: Final = asyncio.ensure_future(client_detached.wait())
try:

View file

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