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
check-schema-sync.yml
codeql.yml
codspeed.yml
compat-matrix-image.yml
conventional-commits.yml
cost-map-guard.yml
cost-map-pins-recheck.yml
create-rc-branch.yml
create-release-branch.yml
duplicate_issue_check.yml
e2e_record_replay.yml
guard-fork-dependencies.yml
image-scan.yml
interactions-spec-canary.yml
issue-keyword-labeler.yml
issue_classifier.yml
issue_fixed_comment.yml
issue_label_claude_code.yml
issue_label_sync.yml
keep-handwritten-description.yml
linear-release.yml
mutation-test.yml
osv-scan.yml
publish-lint-base-counts.yml
root-entry-limit.yml
scorecard.yml
spend-logs-guard.yml
stale.yml
sync-schema.yml
test-e2e-redis-chaos.yml
test-integration.yml
test-linting.yml
test-mcp-dependency-resolution.yml
test-merge-smoke.yml
test-rust-db.yml
test-rust.yml
test-terraform-modules.yml
test-terraform-provider.yml
test-unit.yml
test-vscode-extension.yml
zizmor.yml