mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* refactor(typing): clear basedpyright Any errors in proxy, router and core utils * refactor(typing): clear basedpyright Any errors in proxy server, logging and provider handlers * refactor(typing): clear basedpyright Any errors in types, proxy client and single-Any modules * refactor(typing): clear basedpyright Any errors in providers, responses and proxy endpoints * refactor(typing): clear basedpyright Any errors in key management, prometheus, gigachat and http handler * refactor(typing): clear basedpyright Any errors in a long-tail family sweep * refactor(typing): clear basedpyright Any errors in decode, guardrail and passthrough paths * refactor(typing): clear basedpyright Any errors in decode, realtime and management paths * refactor(typing): clear basedpyright Any errors in source-owned proxy, cache and provider paths * refactor(typing): clear basedpyright Any errors in wave 10 narrow deep pass * refactor(typing): clear basedpyright Any errors in wave 11 hotspot and route request pass * refactor(typing): clear basedpyright Any errors in wave 12 deep coupled pass * refactor(typing): clear basedpyright Any errors in wave 13 family pass * refactor(typing): clear basedpyright Any errors in wave 14 single-hotspot pass * refactor(typing): clear basedpyright Any errors in wave 15 single-hotspot pass * fix(typing): keep main's merged behavior typed after syncing with main * refactor(typing): share one int_of helper across batch, file and key endpoints * test: give mocked Anthropic calls a real message body The Anthropic chat transform now rejects a decoded body that is not a JSON object. Four tests mocked the HTTP client with a bare MagicMock, whose json() is never a real decoded response, so they now return a real Anthropic message. * fix(utils): keep FileTypes importable from litellm.utils The wave 14 pass dropped the now-unused FileTypes import, which also removed the litellm.utils.FileTypes attribute SDK users could import. Re-export it as a TypeAlias the same way TextChoices is. * fix: run real builtins instead of copied CPython errors and keep client SDK types Replace hand-copied CPython error sites with the real operations through small core_helpers wrappers, restore main's typed client SDK returns, and add tests that compare each helper's result and error with the builtin's * fix: raise instead of recursing in the typed narrowing helpers Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: call the value directly so the helpers test collects on Python 3.10 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(typing): mark the three widened TypedDict fields read-only Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| html_forms | ||
| __init__.py | ||
| test_admin_ui_utils.py | ||
| test_auth_cache_invalidation_pubsub.py | ||
| test_budget_alerts.py | ||
| test_cache_aware_routing.py | ||
| test_cache_codec.py | ||
| test_callback_config_validation.py | ||
| test_callback_lifecycle.py | ||
| test_callback_utils.py | ||
| test_check_batch_cost.py | ||
| test_check_responses_cost.py | ||
| test_codex_catalog_source.py | ||
| test_codex_model_catalog.py | ||
| test_codex_model_translation.py | ||
| test_codex_version.py | ||
| test_config_sync_pubsub.py | ||
| test_credential_hydration.py | ||
| test_custom_openapi_spec.py | ||
| test_customer_usage.py | ||
| test_debug_utils.py | ||
| test_discoverable_model_filter.py | ||
| test_encrypt_decrypt_utils.py | ||
| test_error_body_call_id.py | ||
| test_expired_ui_session_key_cleanup_manager.py | ||
| test_fips.py | ||
| test_get_routes.py | ||
| test_hook_cache.py | ||
| test_http_parsing_utils.py | ||
| test_json_merge_patch.py | ||
| test_key_expiry_alert_manager.py | ||
| test_key_rotation_e2e.py | ||
| test_key_rotation_integration.py | ||
| test_key_rotation_lock.py | ||
| test_key_rotation_manager.py | ||
| test_load_config_utils.py | ||
| test_model_deprecation.py | ||
| test_model_listing_utils.py | ||
| test_openai_endpoint_utils.py | ||
| test_openai_error_payload.py | ||
| test_openapi_route.py | ||
| test_openapi_schema_compat.py | ||
| test_periodic_reload_schedule.py | ||
| test_proxy_encrypt_decrypt.py | ||
| test_proxy_rate_limit_error.py | ||
| test_rbac_utils.py | ||
| test_realtime_cache.py | ||
| test_registry_read_through.py | ||
| test_request_tag_mappings.py | ||
| test_reset_budget_job.py | ||
| test_resource_ownership.py | ||
| test_scheduled_job_stagger.py | ||
| test_semantic_text_index.py | ||
| test_slow_gc_logger.py | ||
| test_sse_keepalive.py | ||
| test_static_asset_utils.py | ||
| test_swagger_utils.py | ||
| test_timezone_utils.py | ||
| test_token_count_log.py | ||
| test_token_count_settings.py | ||
| test_upsert_budget_membership.py | ||
| test_user_api_key_cache.py | ||
| test_validation_error_body.py | ||