mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Types provider request and response bodies at their boundaries with TypedDicts and Protocols instead of dict[str, Any], so the untyped-to-typed crossing is paid once per boundary rather than once per field read. Removes 1,700 reportAny/reportExplicitAny errors and 1,953 basedpyright errors overall, plus 310 ruff strict-rule and 106 LIT-rule violations. No cast, type: ignore, noqa, or new Any annotations anywhere in the diff. Ratchets the basedpyright, ruff-strict, and type-discipline budgets to the new counts so the cleared headroom cannot silently grow back. |
||
|---|---|---|
| .. | ||
| litellm_completion_bridge | ||
| providers | ||
| __init__.py | ||
| card_resolver.py | ||
| client.py | ||
| cost_calculator.py | ||
| exception_mapping_utils.py | ||
| exceptions.py | ||
| main.py | ||
| streaming_iterator.py | ||
| utils.py | ||