mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
* fix(router): make the constructor stub work for mypy and guard it in CI Use a plain ParamSpec so mypy reads the stub, drop the dead _host parameter the Rust core already refused, type check a valid and an unknown argument in tests/e2e_harness, and run that type check when litellm Python files change. * fix(typing): read type variables as type variables in mypy and guard the Router stub in lint * fix(typing): count only the probe errors in the Router stub guard and flag Final type variables everywhere * fix(lint): run the Router stub guard and e2e type check from make check make check now runs check_router_constructor_stub.py when litellm/router.py or uv.lock changes, and the e2e basedpyright step on pyproject.toml, uv.lock, pyrightconfig.json, and litellm-proxy-extras Python, matching CI. CI's e2e type check also fires on litellm-proxy-extras Python, which tests/e2e/perf imports. LIT010 treats TypeAliasType like a type variable, since mypy also rejects a Final type alias. * fix(lint): guard the Router stub through the litellm export and keep TypeAliasType bare in LIT010 docs * test: type the new LIT010 type variable tests |
||
|---|---|---|
| .. | ||
| _a2a_peers.py | ||
| _status_code_audit.py | ||
| test_a2a_protocol_version_bridge.py | ||
| test_a2a_protocol_version_errors.py | ||
| test_a2a_protocol_version_override.py | ||
| test_a2a_wire_versions.py | ||
| test_audio_speech_wire.py | ||
| test_audio_transcriptions_wire.py | ||
| test_audio_translations_wire.py | ||
| test_codex_model_catalog.py | ||
| test_compressed_request_bodies.py | ||
| test_embedding_path_aliases.py | ||
| test_fine_tuning_jobs.py | ||
| test_fine_tuning_managed_files_chaos.py | ||
| test_granian_admission_saturation.py | ||
| test_integration_worker_cleanup.py | ||
| test_missing_body_param_status.py | ||
| test_openai_consumer.py | ||
| test_openai_sdk_client_paths.py | ||
| test_openai_sdk_client_paths_chaos.py | ||
| test_persisted_toolsets.py | ||
| test_prompt_management_routes.py | ||
| test_proxy_utils.py | ||
| test_responses_openapi_schema.py | ||
| test_status_code_followups.py | ||
| test_status_code_followups_chaos.py | ||
| test_status_code_followups_defaults.py | ||
| test_status_code_followups_requests.py | ||