github facebook/pyrefly 0.26.0
Pyrefly v0.26.0

latest releases: 0.45.2, 0.45.1, 0.45.0...
4 months ago

Status: ALPHA

Release date: 2025-07-28

Pyrefly 0.26.0 bundles 179 commits from 24 contributors

📝 Changelog

Configuration

  • Added a "disable-search-path-heuristics" to disable search path heuristics for users that want to configure all imports manually.
  • Fixed issues with the --watch flag.
  • Support .pyx, .pyd, and .pyw compiled files for module finding and globbing.
  • Disabled imports from pycache to prevent incorrect imports.

Typechecking Features

  • Fix several bugs with variable scopes.
  • Warn on calling deprecated overloads.
  • Added support for checking code snippets directly from the command line.
  • Disallowed attribute assignment or deletion on super() objects.
  • Emit an error when an uncalled function is used as the condition for an if statement.
  • Improved new and init_subclass behavior.
  • Enabled support for descriptors in dataclass fields.
  • Fixed bugs related to TypedDict operations, including setitem and matching against PartialTypedDict.
  • Fix bug with synthesized namedtuple constructors.

IDE

  • Optimized autocomplete by filtering local variable results and providing a specialized path for builtins, effectively improving auto-import behavior.

Other

  • Enhanced performance with caching for node packages and rust-cache.
  • Improved display of default values and type information.
  • Improved subscript error messages to indicate non-subscriptable types.
  • Summary display is now more concise by default, with options for detailed or no summary.

📦 Upgrade

pip install --upgrade pyrefly==0.26.0

🖊️ Contributors this release

@grievejia @samwgoldman @stroxler @rchen152 @fangyi-zhou @ndmitchell @rubmary @kinto0 @arthaud @lolpack @migeed-z @darricklaidin @connernilsen @regexyl @danielocfb @WeixiMa @MaggieMoss @yangdanny97

Full Changelog: https://github.com/facebook/pyrefly/compare/0.25.0..0.26.0

Don't miss a new pyrefly release

NewReleases is sending notifications on new releases.