Ty 1.0: an extremely fast Python type checker and language server
Web page · https://astral.sh/blog/ty-1.0
First seen by Oriel on .
AI summary
Astral’s ty 1.0 is a production-ready, Rust-based Python type checker and language server offering fast, memory-efficient checking, advanced inference, and ecosystem integrations.
- At OpenAI, ty became the default type checker across millions of critical Python lines; migration delivered a median 24x speedup and 73% lower peak memory.
- It led 16 of 18 type-checking benchmarks and 14 of 17 language-server benchmarks, with fine-grained incrementality accelerating live editor updates.
- Its conformance results improved from 224 false positives and 405 false negatives at Beta to 14 and 13, respectively.
- Version 1.0 adds a generics solver, bidirectional and optional return-type inference, plus built-in support for Pydantic, Django, pytest, and attrs.
- Migration features include automatic fixes, suppression comments, diagnostic baselines, and preview uv integration for scripts with differing Python versions or dependencies.
#python #static typing #language servers #rust
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 717, latest observation ; +672 over observed period since
- Lobsters: 69, latest observation ; +67 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 161, latest observation ; +155 over observed period since
- Lobsters: 8, latest observation ; +8 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50717444 | https://astral.sh/blog/ty-1.0 Read discussion |
| Lobsters | iwhqyc | https://astral.sh/blog/ty-1.0 Read discussion |