Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 26, 2026

Bumps pyrefly from 0.48.2 to 0.49.0.

Release notes

Sourced from pyrefly's releases.

Pyrefly v0.49.0

Status : BETA
Release date: 20 January 2026

Pyrefly v0.49.0 bundles 231 commits from 25 contributors.


✨ New & Improved

Area What’s new
Type Inference - Partial type inference now possible in loops - Variance inference for self-referential generic types (PEP 695) - typing.Mapping now recognised as a type alias
Language Server - Improved refactoring capabilities for moving module members and lifting local functions/methods to top-level module scope, with automatic import/shim creation. - Hover support for in keyword when used in iteration contexts (for-loops and comprehensions), showing the type of the iterable being iterated over - “Go to symbol” now correctly includes methods inside a class - Enabled clickable inlay hints for built-in types like tuple, dict, str, and special forms (TypeVar, ParamSpec, etc.), allowing users to quickly navigate to type definitions in the IDE
Pydantic Support Added detection and support for pydantic.dataclasses.dataclass decorator, including strict and lax mode support for pydantic dataclasses
Error Reporting Improved error messages for yield, yield from, augmented assignment, missing imports, and missing stubs for better user clarity.

🐛 bug fixes

We closed 38 bug issues this week 👏

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.49.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
  • 81a6b3d Update pyrefly version]
  • cfd4743 Fix variance inference for stdlib generic classes
  • 0e3cb7f Fix for T251900430 ("An automatically generated and accepted diff generated b...
  • 8052ae3 Avoid some unnecessary clone()
  • fa5bb39 Rename check_toplevel_func_metadata to visit_toplevel_func_metadata
  • 615fcc1 Use Type::check_toplevel_func_metadata in Type::to_func_kind
  • f647c07 Remove unnecessary deadcode comment
  • e868036 Refactor logic for detecting dataclass decorator
  • b01e7de Propagate strictness info for pydantic dataclasses
  • 271f62c Detect pydantic dataclass decorator
  • Additional commits viewable in compare view

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.48.2 to 0.49.0.
- [Release notes](https://github.com/facebook/pyrefly/releases)
- [Commits](facebook/pyrefly@0.48.2...0.49.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@offa offa merged commit c9f2fe9 into master Jan 26, 2026
14 checks passed
@dependabot dependabot bot deleted the dependabot/pip/pyrefly-0.49.0 branch January 26, 2026 16:46
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