pyrefly: bump 0.42.0 → 0.61.0 and regenerate baseline#4801
pyrefly: bump 0.42.0 → 0.61.0 and regenerate baseline#4801
Conversation
Bumps the pyrefly pin in infra/pre-commit.py and regenerates .pyrefly-baseline.json against the new version so the type-checker stays green. Baseline: 173 -> 169 entries (2080 -> 2031 lines). 85 old suppressions disappeared (mostly inconsistent-overload, redundant-cast, bad-return); 66 new ones appeared (dominated by bad-specialization on dataclasses.replace(self, ...) in levanter LM heads). Three new categories surfaced and went into the baseline: bad-dunder-all, bad-typed-dict-key, invalid-variance. [tool.pyrefly.errors] is intentionally untouched in this commit; that work is staged separately. See logs/pyrefly-tightening/stage1-bump-diff.md for the full breakdown.
|
Claude finished @rjpower's task in 2m 8s —— View job Code review🤖 No issues found. Checked for bugs and CLAUDE.md compliance. The PR is a minimal, mechanical bump: a single literal version string in Reviewers (2× CLAUDE.md/AGENTS.md compliance on Sonnet, 2× bug scan on Opus) each returned no issues. Style/quality rules do not apply to the auto-generated baseline JSON, and the new error categories surfaced by 0.61 (
|
Summary
Bump
pyreflyfrom0.42.0to0.61.0ininfra/pre-commit.pyand regenerate.pyrefly-baseline.jsonso the new version's check passes green. No code changes; no changes to[tool.pyrefly.errors].Baseline deltas (see
logs/pyrefly-tightening/stage1-bump-diff.mdfor detail):Notable category shifts:
bad-specialization1 → 68 — big expansion; almost all areSelf@...vsDataclassInstancebound ondataclasses.replace(self, ...)in levanter LM head models. Likely an upstream stub regression; Stage 3 will decide fix-vs-suppress.inconsistent-overload30 → 10 (-20), concentrated inhaliax/nn/scan.pyandhaliax/_src/scan.py— upstream overload resolution improved.redundant-cast15 → 0 — check retired/retuned.invalid-param-spec2 → 0 — retired.bad-return33 → 20,bad-override32 → 21,bad-assignment13 → 4,unsupported-operation15 → 6 — broad upstream improvements.New categories surfaced by 0.61 (not suppressed — they live in the baseline and get triaged in Stage 2/3):
bad-dunder-all(4) — names in__all__not defined in module (lib/fray/v1/cluster/__init__.py, etc.). Real bugs.bad-typed-dict-key(3) — invalid TypedDict key access inlib/marin/src/marin/cluster/config.py. Real bugs.invalid-variance(2) — TypeVar variance issues.Test plan
./infra/pre-commit.py --all-filespasses on a clean worktree of this branch (Pyrefly reportsok).uvx pyrefly@0.61.0 check --baseline .pyrefly-baseline.jsonreports 0 errors (suppressions only).[tool.pyrefly.errors]inpyproject.tomlis untouched (Stage 1 scope).🤖 Generated with Claude Code