Run `pyright` with `--threads` in `make typecheck`

Merged
KL
3mo ago
+2-1

Why we make these changes

pyright runs its check phase single-threaded by default. The --threads flag (without a count it uses one worker per logical core) parallelizes it with identical diagnostics. Measured on this repo: 42s -> 20s locally on 8 cores; the pre-commit typecheck hook inside the quality checks CI job (often the second-longest job in a run) should drop proportionally on the runner's 4 vCPUs.

Bare --threads rather than a hardcoded count so it adapts to the machine - CI runners and developer laptops alike.

New public surface

none

Verification

make typecheck before/after on the same tree: identical output (0 errors), 42s -> 20s. The quality checks job duration on this PR vs recent main runs.

What changes for existing users

Nothing - developer tooling only. Peak memory during make typecheck increases (one Node worker per core).

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.