Pyrefly 0.22.0
Status : ALPHA
Release date: 30 Jun 2025
Pyrefly 0.22.0 bundles 216 commits from 23 contributors. This release includes significant improvements in type checking and performance enhancements.
✨ New & Improved
Area | What’s new |
---|---|
Type Checking | Implemented support for functools.total_ordering , allowing automatic generation of rich comparison methods.
|
IDE / LSP | Added support for textDocument/rename and textDocument/prepareRename in LSP.
|
Configuration | Introduced CLI flag for --conda-environment to manage Python environments more effectively.
|
🐛 Other bug fixes
- Fixed bugs in attribute narrowing and method overrides.
- Resolved issues with
NamedTuple
field ordering andTypedDict
method synthesis. - Values with
type[tuple]
can now be used as a tuple constructor - Enums can now be subscripted with any
str
, not just literals.
📦 Upgrade
pip install --upgrade pyrefly==0.22.0
🖊️ Contributors this release
@Adist319, @adsi7698, @bigfootjon, @connernilsen, @CookieComputing, @dluo, @facebook-github-bot, @fangyi-zhou, @grievejia, @iwakitakuma33, @kinto0, @krathul, @melvinhe, @migeed-z, @ndmitchell, @pt2302, @rchen152, @SamChou19815, @stroxler, @vagabond-0, @xaskii, @yangdanny97, @zsol
Previous Release Notes
https://github.com/facebook/pyrefly/releases
Full Changelog: 0.21.0...0.22.0