mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Replace Any-typed seams with real types in files carrying the highest remaining reportAny/reportExplicitAny density after #34745: the proxy server and its utils, the router, the streaming handler and chunk builder, litellm_logging, the redis cache, the MCP db/tool-registry/spend-writer layer, the anthropic pass-through adapters and guardrail translation, the lasso and presidio guardrail hooks, the azure_ai agents handler, the management endpoints (keys, users, ui_sso, model access groups, config override, MCP, projects), the responses MCP handlers, response polling background streaming, and the containers and vector stores mains No casts, no type: ignore, no noqa, no new suppressions, and no Any annotations that were not already at base. Whole-tree basedpyright: reportAny 14,610 -> 14,009, reportExplicitAny 5,100 -> 4,780, total 144,743 -> 143,471, with no rule increasing repo-wide or in any file. Budgets ratcheted: basedpyright -1,272 across 48 rules, ruff-strict -85, type-discipline -37 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| internal_user_endpoints.py | ||
| key_management_endpoints.py | ||
| project_endpoints.py | ||