Skip to content

Bump pyrefly from 0.49.0 to 0.51.2#259

Merged
offa merged 1 commit intomasterfrom
dependabot/pip/pyrefly-0.51.2
Feb 10, 2026
Merged

Bump pyrefly from 0.49.0 to 0.51.2#259
offa merged 1 commit intomasterfrom
dependabot/pip/pyrefly-0.51.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 9, 2026

Bumps pyrefly from 0.49.0 to 0.51.2.

Release notes

Sourced from pyrefly's releases.

Pyrefly v0.51.0

Status : BETA
Release date: 02 February 2026

Pyrefly v0.51.0 bundles 162 commits from 25 contributors.


✨ New & Improved

Area What’s new
Type Checking - Fixes for incorrect type narrowing in boolean operations with generic functions - Intersection logic fixed to identify empty intersections (Never) for final classes and populated Enums, as they cannot be subclassed. - Added support GenericAlias type, including special attributes like __origin__, __args__, and support for the pipe operator - Added support for checking that class-scoped type variables are not used in self annotations in __init__ methods, per typing spec
Language server - During module resolution, "phantom paths" (non-existent paths checked during import) are now tracked, improving watch mode and import re-resolution - List addition (+) now propagates type hints to both operands, making assignments like l2: list[Base] = [A()] + [B()] work as expected
Error Handling - Added configuration to debug and/or bypass deep recursion, which is useful for diagnosing stack overflow issues in large or generated codebases - Multiple error messages have been shortened, clarified, or made more precise for better user experience (e.g., TypedDict, protocol variables, unpacking errors, pydantic, descriptor defaults).
Performance Improvements - Faster suggested standard library imports (did you mean...?) - Reduced memory usage for type aliases of unions - Further improvements to tracking for fine-grained dependencies, improving IDE performance during incremental rechecks and accuracy of features like auto-imports

🐛 bug fixes

We closed 21 bug issues this release 👏

  • #2269 - Attribute lookups on classes inheriting from Any now fall back to Any instead of reporting missing-attribute.
  • #2250 - Self is now properly bound in class body expressions.
  • #2236 - fixed issue where --removed-unused-ignores incorrectly removed ignores from other type checkers
  • #2196 - Tuple length checks with isinstance now work correctly with unpacked tuples and type variables
  • #2118 - Legacy TypeVars are now correctly inferred in Callable annotations without assignment
  • And more! #990, #842, #496, #2036, #1917, #1807, #1714, #1680, #2169, #2141, #2211, #2208, #2246, #2267, #2256, #2274

Thank-you to all our contributors who found these bugs and reported them! Did you know this is one of the most helpful contributions you can make to an open-source project? If you find any bugs in Pyrefly we want to know about them! Please open a bug report issue here


📦 Upgrade

pip install --upgrade pyrefly==0.51.0

How to safely upgrade your codebase

Upgrading the version of Pyrefly you're using or a third-party library you depend on can reveal new type errors in your code. Fixing them all at once is often unrealistic. We've written scripts to help you temporarily silence them. After upgrading, follow these steps:

  1. pyrefly check --suppress-errors
  2. run your code formatter of choice
  3. pyrefly check --remove-unused-ignores
  4. Repeat until you achieve a clean formatting run and a clean type check.

This will add # pyrefly: ignore comments to your code, enabling you to silence errors and return to fix them later. This can make the process of upgrading a large codebase much more manageable.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyrefly](https://github.com/facebook/pyrefly) from 0.49.0 to 0.51.2.
- [Release notes](https://github.com/facebook/pyrefly/releases)
- [Commits](https://github.com/facebook/pyrefly/commits)

---
updated-dependencies:
- dependency-name: pyrefly
  dependency-version: 0.51.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@offa offa merged commit d0284c2 into master Feb 10, 2026
14 checks passed
@dependabot dependabot bot deleted the dependabot/pip/pyrefly-0.51.2 branch February 10, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant