Skip to content

Conversation

@dependabot
Copy link
Contributor

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

Bumps pyrefly from 0.40.0 to 0.43.1.

Release notes

Sourced from pyrefly's releases.

Pyrefly v0.43.0

Status : BETA
Release date: 24 November 2025

Pyrefly v0.43.0 bundles 213 commits from 24 contributors.

✨ New & Improved

Area What’s new
IDE/LSP Features - New warnings for unused imports and unused variables - Pyrefly LSP features now apply to Python documents with the inmemory schema, improving support for interactive consoles and temporary code cells in IDEs like Positron. - Added a configuration option to control whether "Go to definition" links appear in hover tooltips, enabled by default
Type Checker Improved support for unpacking tuple[*Ts], fixing cases where unpacking would previously degrade to object If a TypeVarTuple-annotated varargs is unmatched, it now resolves to an empty tuple in all cases
Error Messages - New --enabled-ignores command line flag and configuration option allow specifying exactly which tools’ ignore comments (e.g., # pyright: ignore) pyrefly respects - CLI flags like --error, --warn, etc., now accept comma-separated lists, making it easier to enable or disable multiple error codes at once.
Pydantic Support Improved handling of RootModel types, including nested and union scenarios. Basic support for Pydantic BaseSettings. Fields in BaseSettings are now treated as optional by default.

🐛 bug fixes

We closed 17 bug issues this week 👏

  • #1642 - TypedDicts with any required keys are now correctly treated as always truthy, allowing for proper type narrowing in boolean expressions
  • #1611- correctly detects await in nested generator expressions, preventing them from being incorrectly typed as Generator instead of AsyncGenerator.
  • #1609 - fixed a bug where positional argument inlay hints for callables with *args would show incorrect positions or duplicates
  • #1598 - Literal strings now correctly participate in protocol subset checks (e.g., against typing.Container), fixing an issue with type signature mismatch
  • #1462 - Allow referencing inherited attributes from a class body's top level.
  • #1256 - fixes crash when the walrus operator (:=) appears in annotation positions
  • #273 - correctly handles tuple[()] | tuple[int, *tuple[int, ...]] to simplify to tuple[int, ...].
  • And more: #1644, #1635, #1633, #1631, #1625, #1604, #1268, #1230, #1016, #981

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.43.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

... (truncated)

Commits
  • a4d0bfa bump version
  • 693b94f highlight false negative
  • 8a3b4d9 filter star imports from unused detection
  • 95c23bd fix unused variable detection for reassignments
  • d668be0 Test that Union types do not split properly.
  • 549429e Implement write_type.
  • fcbf942 fix parsing of multi-line parameter descriptions in docstrings #1588 (#1629)
  • 19a2edc Implement write_targs
  • 1bd817f Implement write_lit
  • 853af26 Implement write_qname
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 1, 2025
@dependabot dependabot bot requested a review from remyleone as a code owner December 1, 2025 15:32
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 1, 2025
@dependabot dependabot bot force-pushed the dependabot/pip/scaleway-core/pyrefly-0.43.1 branch from 574a9a2 to 71c29a7 Compare December 1, 2025 23:42
@Laure-di
Copy link
Contributor

Laure-di commented Dec 2, 2025

@dependabot rebase

Bumps [pyrefly](https://github.com/facebook/pyrefly) from 0.40.0 to 0.43.1.
- [Release notes](https://github.com/facebook/pyrefly/releases)
- [Commits](facebook/pyrefly@0.40.0...0.43.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/scaleway-core/pyrefly-0.43.1 branch from 71c29a7 to 4fead75 Compare December 2, 2025 10:16
@Laure-di Laure-di added this pull request to the merge queue Dec 2, 2025
Merged via the queue into main with commit 65c849d Dec 2, 2025
78 checks passed
@Laure-di Laure-di deleted the dependabot/pip/scaleway-core/pyrefly-0.43.1 branch December 2, 2025 10:41
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.

2 participants