Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2025

Bumps pyrefly from 0.31.1 to 0.35.0.

Release notes

Sourced from pyrefly's releases.

Pyrefly v0.35.0

Status : ALPHA
Release date: 29 September 2025

Pyrefly v0.35.0 bundles 226 commits from 18 contributors.


✨ New & Improved

Area What’s new
Configuration - Improved config finding, preferring Pyrefly configurations in any parent directory to project root marker files. pyproject.toml files are now only considered configurations when a [tool.pyrefly] section is present, otherwise, they are root marker files.
Build systems - Continued work on build system support, primarily Buck. Look out for further updates coming soon!
Error messages and suppressions - Improved reveal_type/assert_type error messages to suggest importing from typing when needed, rather than a generic “could not find name” error message - New error kind introduced: inconsistent-overload. This gives overload consistency errors a separate error kind from other invalid overload errors so that users can turn off consistency checks if they wish. suppress-error command now has optional --same-line argument for easier bulk suppression of errors. Instead of adding pyrefly ignore comments on the line above, this flag adds the comment on the same line as where the error is.
Security - upgraded mdbook crate to 0.4.52 to resolve vulnerability with ammonia dependency
Third party package support - Improved handling of optional Pydantic fields (if they are optional we should not require them) - Foundational work to support Django enums

🐛 bug fixes

We closed 11 bug issues this release 👏

  • #1167, #1166 - inaccuracies with type(x) returning the wrong thing
  • #954 - fixed an issue with Pyrefly not recognising Session context manager from SQL Alchemy. Fixing this issue brings us one step closer to Pyrefly being full usable SQL Alchemy (follow progress here)
  • #260 - unions of dunder methods weren’t being recognised correctly
  • And more - #1165, #1148, #1146, #1030, #614, #527, #300

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.35.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
  • 9fb9a05 Update pyrefly version]
  • 3269b7b Update cxx fork
  • 59b6296 Store Vec\<Flow> in MergeItem
  • 9a372ca Add logging around querying buck for source DB
  • c4b5833 Add scrut tests for new config finding logic
  • 487a943 Back out "docstring on attributes"
  • 91be3ff Back out "only parse ast once per module"
  • 124c2ce Do not require an optional pydantic field (#1183)
  • e5e87a9 Get receiver class when calling class methods
  • 07127f5 Strip optional types before getting receiver class
  • 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.31.1 to 0.35.0.
- [Release notes](https://github.com/facebook/pyrefly/releases)
- [Commits](facebook/pyrefly@0.31.1...0.35.0)

---
updated-dependencies:
- dependency-name: pyrefly
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 1, 2025
@dependabot dependabot bot requested a review from remyleone as a code owner October 1, 2025 13:02
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 1, 2025
@yfodil yfodil added this pull request to the merge queue Oct 1, 2025
Merged via the queue into main with commit 57bf313 Oct 1, 2025
78 checks passed
@yfodil yfodil deleted the dependabot/pip/scaleway/pyrefly-0.35.0 branch October 1, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant