From b2f97ecabb1f14e3e4b5d9fbde0793ee3b80b86f Mon Sep 17 00:00:00 2001 From: Devin Date: Tue, 11 Aug 2026 14:21:23 +0000 Subject: [PATCH] chore(typing): ratchet lint budgets after Any cleanup --- basedpyright-code-budget.json | 20 +++++++++---------- .../responses/file_search/emulated_handler.py | 4 +--- ruff-strict-budget.json | 20 +++++++++---------- type-discipline-budget.json | 10 +++++----- 4 files changed, 26 insertions(+), 28 deletions(-) diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.json index 96b689aed74..be63e7a76b3 100644 --- a/basedpyright-code-budget.json +++ b/basedpyright-code-budget.json @@ -1,6 +1,6 @@ { "reportAny": { - "limit": 26391 + "limit": 26006 }, "reportArgumentType": { "limit": 2614 @@ -24,7 +24,7 @@ "limit": 19 }, "reportExplicitAny": { - "limit": 8319 + "limit": 8147 }, "reportFunctionMemberAccess": { "limit": 7 @@ -54,10 +54,10 @@ "limit": 0 }, "reportMissingParameterType": { - "limit": 5825 + "limit": 5809 }, "reportMissingTypeArgument": { - "limit": 15695 + "limit": 15681 }, "reportMissingTypeStubs": { "limit": 40 @@ -99,22 +99,22 @@ "limit": 0 }, "reportUnknownArgumentType": { - "limit": 44996 + "limit": 44940 }, "reportUnknownLambdaType": { "limit": 113 }, "reportUnknownMemberType": { - "limit": 39643 + "limit": 39564 }, "reportUnknownParameterType": { - "limit": 20132 + "limit": 20105 }, "reportUnknownVariableType": { - "limit": 31153 + "limit": 31065 }, "reportUnnecessaryCast": { - "limit": 118 + "limit": 117 }, "reportUnnecessaryComparison": { "limit": 701 @@ -123,7 +123,7 @@ "limit": 5 }, "reportUnnecessaryIsInstance": { - "limit": 857 + "limit": 849 }, "reportUntypedBaseClass": { "limit": 0 diff --git a/litellm/responses/file_search/emulated_handler.py b/litellm/responses/file_search/emulated_handler.py index 9d0cda5adf4..852e98524df 100644 --- a/litellm/responses/file_search/emulated_handler.py +++ b/litellm/responses/file_search/emulated_handler.py @@ -439,9 +439,7 @@ def _build_file_search_call_output( include_search_results: Populate search_results when the caller passed ``include=["file_search_call.results"]``. """ - search_results: Final = ( - _build_search_results_for_include(results) if include_search_results and results else None - ) + search_results: Final = _build_search_results_for_include(results) if include_search_results and results else None return FileSearchCallOutput( type="file_search_call", id=call_id, diff --git a/ruff-strict-budget.json b/ruff-strict-budget.json index da0f608fdb5..a3b8724ab92 100644 --- a/ruff-strict-budget.json +++ b/ruff-strict-budget.json @@ -1,21 +1,21 @@ { "ANN001": { - "limit": 3106 + "limit": 3091 }, "ANN002": { "limit": 71 }, "ANN003": { - "limit": 832 + "limit": 831 }, "ANN201": { - "limit": 2023 + "limit": 2022 }, "ANN202": { - "limit": 860 + "limit": 859 }, "ANN204": { - "limit": 713 + "limit": 710 }, "ANN205": { "limit": 114 @@ -24,7 +24,7 @@ "limit": 133 }, "ANN401": { - "limit": 1495 + "limit": 1457 }, "ASYNC230": { "limit": 11 @@ -39,7 +39,7 @@ "limit": 505 }, "B009": { - "limit": 79 + "limit": 76 }, "B010": { "limit": 190 @@ -180,7 +180,7 @@ "limit": 8 }, "RUF019": { - "limit": 38 + "limit": 35 }, "RUF046": { "limit": 4 @@ -201,7 +201,7 @@ "limit": 58 }, "SIM102": { - "limit": 322 + "limit": 319 }, "SIM103": { "limit": 119 @@ -234,7 +234,7 @@ "limit": 5 }, "TID251": { - "limit": 1226 + "limit": 1217 }, "TRY002": { "limit": 524 diff --git a/type-discipline-budget.json b/type-discipline-budget.json index c990ae52ff2..7825a4fce85 100644 --- a/type-discipline-budget.json +++ b/type-discipline-budget.json @@ -1,9 +1,9 @@ { "LIT001": { - "limit": 23057 + "limit": 23036 }, "LIT002": { - "limit": 27156 + "limit": 27081 }, "LIT003": { "limit": 269 @@ -15,7 +15,7 @@ "limit": 0 }, "LIT006": { - "limit": 1078 + "limit": 1065 }, "LIT007": { "limit": 0 @@ -27,9 +27,9 @@ "limit": 0 }, "LIT010": { - "limit": 16744 + "limit": 16689 }, "LIT011": { - "limit": 5596 + "limit": 5593 } }