Pyrefly v0.49.0
Status : BETA
Release date: 20 January 2026
Pyrefly v0.49.0 bundles 231 commits from 25 contributors.
✨ New & Improved
| Area | What’s new |
| :---- | :---- |
| Type Inference | - Partial type inference now possible in loops
- Variance inference for self-referential generic types (PEP 695)
- typing.Mapping now recognised as a type alias |
| Language Server | - Improved refactoring capabilities for moving module members and lifting local functions/methods to top-level module scope, with automatic import/shim creation.
- Hover support for in keyword when used in iteration contexts (for-loops and comprehensions), showing the type of the iterable being iterated over
- “Go to symbol” now correctly includes methods inside a class
- Enabled clickable inlay hints for built-in types like tuple, dict, str, and special forms (TypeVar, ParamSpec, etc.), allowing users to quickly navigate to type definitions in the IDE |
| Pydantic Support | Added detection and support for decorator, including strict and lax mode support for pydantic dataclasses |
| | Improved error messages for , , augmented assignment, missing imports, and missing stubs for better user clarity. |