CI Perf Lint

prefer-mypy-performance-milestone

Detects mypy versions below known performance milestones in the 1.x series and suggests incremental upgrades.

What it detects

The major 2.x upgrade path is handled separately: consider-mypy-2-upgrade (1.x → 2.0, with a breaking-change note) and prefer-mypy-2-performance-milestone (2.x → 2.x), because mypy 2.0 is a breaking major release.

Why it matters

Each milestone release includes measurable type-checking speed improvements. Upgrading incrementally reduces risk while still delivering faster CI runs.

Suggested action

Bump mypy to the next milestone version, run the type-checker, and fix any new errors before targeting the next milestone.

Measurement

Compare mypy runtime before and after the upgrade.