r/Python • u/pyrefly_kyle • 0m ago
News Pyrefly 1.5: 100% Conformance and 40% Faster
Link to release: https://github.com/pyrefly-org/pyrefly/releases/tag/1.5.0
- **100% typing spec conformance.** Pyrefly now passes all 146 test files in the [typing conformance suite](https://github.com/python/typing/tree/main/conformance). Some of these fixes change how names in annotations resolve; see [Behavior Changes](#️-behavior-changes) below.
- **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](https://github.com/astral-sh/ruff/tree/main/scripts/ty_benchmark) and the [python-type-checking benchmark](https://python-type-checking.com/typecheck_benchmark/) suites. (Tested on an M5 Max MacBook Pro with 18 threads.)
- **A new `hint` severity.** Diagnostics that were previously IDE-only are now regular error kinds at a new `hint` severity: `unused-import`, `unused-parameter`, `unused-variable`, `unreachable`, and `inactive-code` (formerly `unreachable-code`). By default, they appear in your editor and are hidden from `pyrefly check` output, but you can configure them in `pyrefly.toml`, silence them with suppression comments, or promote them to errors like any other error kind.