# Astralのty 1.0、OpenAIで数百万行のPython型チェックを24倍高速化

Original title: Ty 1.0: an extremely fast Python type checker and language server

> Hacker News story 50717444 · language: ja · submitted 2026-12-01
> Web version: https://zeli.app/ja/story/50717444
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 706 · by [burntsushi](<https://news.ycombinator.com/user?id=burntsushi>) · 💬 159
[original](<https://astral.sh/blog/ty-1.0>) · [HN discussion](<https://news.ycombinator.com/item?id=50717444>)

## Summary

AstralがRust製Python型チェッカー兼言語サーバー「ty」の1.0をリリース。OpenAIでは既にデフォルトの型チェッカーとして数百万行のコードをカバーし、移行後は中央値で24倍の高速化とピークメモリ73%削減を実現した。ベンチマークでは18プロジェクト中16で最速、Pyreflyより1.46倍、Zubanより3.56倍速い。PydanticやDjangoなど主要ライブラリにも対応し、本番利用が推奨される。

## Key quote

> tyは私がこれまで携わった中で最も技術的に野心的なプロジェクトです。

## HN discussion (159 comments)

### [cataflam](<https://news.ycombinator.com/item?id=50723332>)

> 3月に見直して、（プロジェクトによってmypyか何も使わないかだったのを）pyrightに切り替えたのを覚えている。
>
> 当時、tyの適合性スイートの合格率は53%、pyreflyは88%で、pyrightは98%だった（zubanは知らなかった）。
>
> 今は[1] pyreflyとzubanが両方100%、tyが97%、pyrightが96%だ。
>
> 再評価の時期だな。
>
> [1] https://github.com/python/typing/blob/main/conformance/resul...

### [adsharma](<https://news.ycombinator.com/item?id=50721799>)

> Djangoの型チェックを求めている皆さんへ：ただで手に入るものはない。Djangoの書き方を型フレンドリーに変える必要がある。これはsqlalchemy/sqlmodelにも当てはまる。
>
> https://github.com/adsharma/fquery/blob/main/tests/django_ex...
>
> https://github.com/adsharma/fastapi-shopping/blob/main/src/f...

### [scosman](<https://news.ycombinator.com/item?id=50722209>)

> 初期ベータの間にPyrightからTyに切り替えて、それ以来ずっと使っている。速度は明らかな利点で、遭遇した数少ないバグもすべて解決された。Astralの皆さん、素晴らしい仕事だ。

### [memco](<https://news.ycombinator.com/item?id=50720281>)

> Tyはとても使いやすいと思うので、これは楽しみだが、この発表は書き方が下手だと感じて素直に評価しづらかった。
>
> ラベルの付いていないベンチマークのグラフがあるし、（下にある場合の）リンクも全体像を与えてくれない（ただ行ったり来たりして、どうにか表とグラフを対応させようとするしかない？）。それに前年比成長のグラフも妙に感じる。そのYoYグラフは、Tyが健全に成長していると感じさせるよりも、なぜmypyが2025年から2026年にかけて4倍に成長したのかをもっと知りたくなる。また、Tyがもたらす実際の型チェックの利点、特に1.0がもたらす進歩よりも、ユーザーベースの成長を強調することを選んだのはなぜか気になる。
>
> 情報がごちゃ混ぜで、物足りなく感じる。

### [fishgoesblub](<https://news.ycombinator.com/item?id=50718673>)

> Tyが実際にPyreflyと比べてどうなのか気になる。当時はPyreflyに比べてかなり見劣りしたので、Tyから切り替えざるを得なかった。今はPythonの型チェッカーに関しては選択肢に恵まれすぎている。

### [kccqzy](<https://news.ycombinator.com/item?id=50720369>)

> 仕事のコードベースでPythonの型付けは諦めた。同僚は型を気にせず、メタプログラミングを使いすぎていて（型を変えるデコレータやメタクラスなどが多すぎる）、1万行あたり最大2000件の誤検出を見たこともある。
>
> それでも、pyrightからtyに切り替えたとき、定義へのジャンプのような操作がどれほど速いかに本当に驚いた。pyrightでは、言語サーバーベースの定義へのジャンプはripgrep検索より遅いことがよくある。

### [dang](<https://news.ycombinator.com/item?id=50720153>)

> 過去の関連スレッド。他にある？
>
> Ty – A fast Python type checker, written in Rust - https://news.ycombinator.com/item?id=46100637 - Nov 2025 (15 comments)
>
> Pyrefly vs. Ty: Comparing Python's two new Rust-based type checkers - https://news.ycombinator.com/item?id=44107655 - May 2025 (160 comments)
>
> Ty: A fast Python type checker and language server - https://news.ycombinator.com/item?id=43918484 - May 2025 (287 comments)

### [natsu529](<https://news.ycombinator.com/item?id=50719136>)

> 1.0おめでとうございます。とても興味深いので試してみたいです。tyはDjango / DRFについて何か対応しているのでしょうか？私はモデルとクエリセットにdjango-stubsとそのmypyプラグインに頼っているので、tyがその種の動的な振る舞いをどう扱うのか気になります。

---

## Cite

- Page: https://zeli.app/ja/story/50717444
- Date: 2026-12-01
- Source: astral.sh (https://astral.sh/blog/ty-1.0)
- Hacker News: https://news.ycombinator.com/item?id=50717444

## Other languages

- en: https://zeli.app/story/50717444 · markdown: https://zeli.app/story/50717444.md
- zh: https://zeli.app/zh/story/50717444 · markdown: https://zeli.app/zh/story/50717444.md
- ko: https://zeli.app/ko/story/50717444 · markdown: https://zeli.app/ko/story/50717444.md
- de: https://zeli.app/de/story/50717444 · markdown: https://zeli.app/de/story/50717444.md
- es: https://zeli.app/es/story/50717444 · markdown: https://zeli.app/es/story/50717444.md
- ru: https://zeli.app/ru/story/50717444 · markdown: https://zeli.app/ru/story/50717444.md
