litellm/.github/workflows
Mateo Wang 3ccc619792
fix(router): make the constructor stub work for mypy and guard it in CI (#50354)
* 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
2026-11-22 21:25:00 +00:00
..
auto-close-duplicates.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
check-schema-sync.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
codeql.yml ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
codspeed.yml ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
compat-matrix-image.yml
conventional-commits.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
cost-map-guard.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
cost-map-pins-recheck.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
create-rc-branch.yml
create-release-branch.yml
duplicate_issue_check.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
e2e_record_replay.yml
guard-fork-dependencies.yml chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
image-scan.yml ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
interactions-spec-canary.yml
issue-keyword-labeler.yml
issue_classifier.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
issue_fixed_comment.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
issue_label_claude_code.yml
issue_label_sync.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
keep-handwritten-description.yml ci: restore a PR's handwritten description when an edit resets it to the placeholder (#53486) 2026-11-21 16:50:40 -08:00
linear-release.yml
mutation-test.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
osv-scan.yml
publish-lint-base-counts.yml ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
root-entry-limit.yml ci(lint): run the fast lint checks on pull requests again without compiling Rust (#53421) 2026-11-21 14:17:30 -08:00
scorecard.yml
spend-logs-guard.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
stale.yml
sync-schema.yml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
test-e2e-redis-chaos.yml
test-integration.yml ci(integration): point the rust gateway install step at litellm/packaging (#51743) 2026-11-14 13:36:57 +09:00
test-linting.yml fix(router): make the constructor stub work for mypy and guard it in CI (#50354) 2026-11-22 21:25:00 +00:00
test-mcp-dependency-resolution.yml ci(mcp-deps): build unoptimized in the MCP dependency resolution workflow (#51684) 2026-11-13 19:17:44 +00:00
test-merge-smoke.yml ci(lint): clear the two code-quality failures behind the stale provider file (#52921) 2026-11-19 19:59:23 +00:00
test-rust-db.yml ci(rust): run LiteLLM Rust DB on pushes to main only and cover release-line PRs (#52609) 2026-11-18 17:44:13 -08:00
test-rust.yml feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042) 2026-11-20 10:12:08 -08:00
test-terraform-modules.yml
test-terraform-provider.yml feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042) 2026-11-20 10:12:08 -08:00
test-unit.yml feat(gradium): add text-to-speech support for /v1/audio/speech (#46427) 2026-11-21 23:51:27 +00:00
test-vscode-extension.yml
zizmor.yml