[chore] Upgrade pyrefly to 1.1.1#2825
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked PRs (oldest at bottom):
[chore] Upgrade pyrefly to 1.1.1