Ty 1.0: Fast Python type checker and language server(astral.sh)
709 points by burntsushi 4 days ago | 159 comments
tl;dr: Astral has released ty 1.0, a Rust-based Python type checker and language server positioned as an alternative to mypy, Pyright, and Pyrefly. In benchmarks, it outperforms other Rust-based checkers (1.46x faster than Pyrefly, 3.56x faster than Zuban) and is already the default at OpenAI, where it delivered a 24x median speedup and 73% memory reduction. The release adds bidirectional type inference, built-in support for Pydantic/Django/pytest, auto-fixes, migration tooling with diagnostic baselines, and PEP 723 script support via uv integration.
HN Discussion:
  • ↑Users who switched to ty and had positive experiences with speed and reliability
  • ~Conformance scores have improved, warranting a re-evaluation of ty against competitors
  • ↓The announcement itself is poorly written with confusing benchmark presentations
  • •Questions about Django/DRF support and dynamic framework handling remain
  • ↓Ty has usability issues like not finding modules in CPython's default locations