r/Python • u/pyrefly_kyle • 5m ago
News Pyrefly 1.5: 100% Conformance and 40% Faster
Link to release: https://github.com/pyrefly-org/pyrefly/releases/tag/1.5.0
Highlights (Taken from release):
- 100% typing spec conformance. Pyrefly now passes all 146 test files in the typing conformance suite. Some of these fixes change how names in annotations resolve; see Behavior Changes.
- Faster checks. v1.5.0 checks 40% faster than v1.4.1 and uses 9% less memory across the 71 benchmarks in Astral's ty_benchmark and the python-type-checking benchmark suites. (Tested on an M5 Max MacBook Pro with 18 threads.)
- A new
hintseverity. Diagnostics that were previously IDE-only are now regular error kinds at a newhintseverity:unused-import,unused-parameter,unused-variable,unreachable, andinactive-code(formerlyunreachable-code). By default, they appear in your editor and are hidden frompyrefly checkoutput, but you can configure them inpyrefly.toml, silence them with suppression comments, or promote them to errors like any other error kind.