Skip to content

[chore] Upgrade pyrefly to 1.1.1#2825

Merged
oulgen merged 1 commit into
mainfrom
oulgen/stack/350
Jun 19, 2026
Merged

[chore] Upgrade pyrefly to 1.1.1#2825
oulgen merged 1 commit into
mainfrom
oulgen/stack/350

Conversation

@oulgen

@oulgen oulgen commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Stacked PRs (oldest at bottom):


[chore] Upgrade pyrefly to 1.1.1

Bump the pinned pyrefly version everywhere it is referenced:
- lint.sh, .github/workflows/lint.yml, Dockerfile: pyrefly==1.1.1
- .pre-commit-config.yaml: pyrefly-pre-commit rev 1.0.0 -> 1.1.0
  (no 1.1.1 tag exists in that repo; the hook runs the system-installed
  pyrefly via scripts/pyrefly_check.sh anyway)

Fix the 9 new type errors that pyrefly 1.1.1 surfaces so CI stays clean:
- logger.py: _csv._writer -> _csv.Writer (typeshed dropped the alias;
  TYPE_CHECKING-only, no runtime effect)
- _testing.py: add provably-true `assert tensor.grad is not None`
- targeted `# pyrefly: ignore[...]` for stub-limitation false positives
  (functools.reduce(operator.mul) over SymInt|int / Expr, a FunctionType
  dataclass field mis-bound as MethodType, a bad-argument-type matching
  the existing sibling suppression, the BoundKernel.env protocol override,
  and a read-only instance attr on a torch.Tensor subclass)

Verified: `pyrefly check` reports 0 errors and `pre-commit run --all-files`
passes all hooks.

stack-info: PR: #2825, branch: oulgen/stack/350
@oulgen oulgen force-pushed the oulgen/stack/350 branch from d80b432 to 8cf9ba5 Compare June 19, 2026 06:55
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 19, 2026
@oulgen oulgen merged commit 98f5ee7 into main Jun 19, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant