Skip to content

Bump pyrefly from 0.58.0 to 0.59.0#1619

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/pip/pyrefly-0.59.0
Mar 31, 2026
Merged

Bump pyrefly from 0.58.0 to 0.59.0#1619
github-actions[bot] merged 1 commit intomainfrom
dependabot/pip/pyrefly-0.59.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 31, 2026

Bumps pyrefly from 0.58.0 to 0.59.0.

Release notes

Sourced from pyrefly's releases.

Pyrefly v0.59.0

Status : Beta
Release date: March 30, 2026

Pyrefly v0.59.0 bundles 153 commits from 20 contributors.


✨ New & Improved

Area What’s new
Type Checking - You can now use while...else statements with returns in the else clause without triggering a false positive missing-explicit-return error. - Pyrefly now correctly handles type inference for nested empty dictionaries when constructing TypedDict instances, avoiding implicit-any errors. - Error messages now highlight related code with inline labels; for example, an unsupported * operation will show the types of both operands directly in the source snippet
Language Server - LSP hover information for classes now displays constructor signature and docstring. - Support additional LSP functionality for notebooks, including find-references and rename.
Performance - Faster typechecking in large pythonc codebases, up to 2x faster on recent benchmarks on real world projects - Reduced CPU usage through smarter caching of module resolution results - Improved performance of the LSP server by reducing redundant workspace diagnostic publishes.

🐛 bug fixes

We closed 16 bug issues this release 👏

  • #2026: Fixed an issue where recursive bounded generics were incorrectly reported as object, ensuring accurate type checking.
  • #2812: Resolved a false positive invalid-type-var error when persisting the get method of a fully-annotated dict.
  • #2804: Fixed an implicit-any false positive that occurred with TypedDict items, improving code readability.
  • #2868: Pyrefly now correctly recognizes while...else statements with returns in the else clause as exhaustive.
  • #2814: Enhanced hover information for datetime.datetime imports to display constructor signatures and docstrings.
  • #2896: Fixed a bad-argument-type error that occurred when using double-underscore arguments.
  • #2893: Pyrefly now correctly handles dict Literal key types as subtypes of str key types.
  • #2865: Resolved an issue where tuple subclasses with overridden __getitem__ were not recognized.
  • #2871: Fixed a false positive error when using isinstance with type | X.
  • And more! #2444, #1270, #2900, #2862, #2853

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

... (truncated)

Commits
  • f634064 Update pyrefly version
  • 98d0c50 Fix annotated legacy TypeVar/ParamSpec/TypeVarTuple not working as type annot...
  • 28fcfa7 fix Upward Find for venv #759 (#2791)
  • 61598ef Clamp LSP positions to line length per spec to fix completion after trailing dot
  • 4e1e19b Reject Self return annotation when self param is some other Type Var
  • a0a6b6e Add GitHub Action for automated release creation and Discord notification
  • 2a36251 Automate release notes process
  • b039f06 Reclassify unresolved imports as Implicit Any instead of Explicit
  • 3d82c1c Add failing test for annotated variable type erasure with Any (github #2227)
  • 47f51ae Track tensor fancy indexing in multi-axis subscripts
  • Additional commits viewable in compare view

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 31, 2026
@github-actions github-actions bot enabled auto-merge March 31, 2026 22:53
Bumps [pyrefly](https://github.com/facebook/pyrefly) from 0.58.0 to 0.59.0.
- [Release notes](https://github.com/facebook/pyrefly/releases)
- [Commits](facebook/pyrefly@0.58.0...0.59.0)

---
updated-dependencies:
- dependency-name: pyrefly
  dependency-version: 0.59.0
  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/pyrefly-0.59.0 branch from a479fb6 to 6929a74 Compare March 31, 2026 22:56
@github-actions github-actions bot merged commit ed331f7 into main Mar 31, 2026
15 checks passed
@github-actions github-actions bot deleted the dependabot/pip/pyrefly-0.59.0 branch March 31, 2026 22:58
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.

0 participants