Release date: September 18, 2026
About dev releases Dev releases (versions like
X.Y.Z-dev.N) are non-stable snapshots cut periodically from trunk. They give early adopters a chance to try in-progress features and surface issues before the next stable release, but they don‘t carry the same stability or compatibility guarantees as a stable release β don’t pin production projects to a dev version.
Pyrefly v1.4.0-dev.1 bundles 98 commits from 13 contributors.
uninitialized-instance-variable check reports instance attributes that may be read before assignment, including fields on dataclasses declared with init=False.functools.partial, independently pruned arguments, and writable callback variance.annotate() calls now add their declared attributes to the resulting queryset type.__self.We closed 3 bug issues this release π
__self, such as methods on loguru.Logger.dict, list, and set literals passed to mapped_column(default=...) and recommend default_factory instead.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.
pip install --upgrade pyrefly==1.4.0-dev.1
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:
pyrefly check --suppress-errorspyrefly check --remove-unused-ignoresThis 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.
Read more about error suppressions in the Pyrefly documentation.
@rchen152, David Tolnay, @dependabot, @kylei, @dedsec-terminal, Oleh Prypin, GΓ‘bor Varga, @jakevdp, @jasonnathanieln, @stroxler, @ndmitchell, @connernilsen, @asukaminato0721
JAX stub support is still under development and is not yet available on PyPI. The JAX improvements below describe ongoing work in the repository rather than an installable stub package in this release.
The current
einopsstubs are limited to Torch tensors. We are still exploring how to support multiple array packages.
ArrayLike inputs more broadly, with improved shape inference for linspace, logspace, and geomspace.torch.where and bare @torch.no_grad.pyrefly-shape-extensions now supports Python 3.10 and provides runtime markers for regular nested lists.Please note: These release notes summarize major updates and features. For brevity, not all individual commits are listed.