ty 1.0: an extremely fast Python type checker and language server
65 points by bezdomni
65 points by bezdomni
Oh wow, they jumped from 0.0.115 to 1.0. Interesting that neither uv nor ruff have passed 0-ver yet.
I have been using ty+ruff as LSPs in the gram editor for more than a year and have been mostly happy with it. Recent versions added features but crashed more often and had new performance issues, let's hope this 1.0 is the end of that. For the biggest projects and which I started with mypy, I still run mypy as a pre-commit hook and in CI, because the incompatibilities between the ty and mypy are quite annoying, and overall mypy --strict seemed more complete, notably regarding generics (at least with how I use them).
I think they compete with pyrefly, which became 1.0 this year and gained quite a lot of positive attention. I use it (also with gram and zed) and it’s quite good. Tried ty but it flagged some false positives that pyrefly didn’t have problem with (could be better now).
I was using ty, a much older version, with Helix earlier and was disappointed in its go-to-definition implementation. I switched to pyrefly and have been more happy with it. The performance seems OK.
I might try ty+ruff again, but now I've also switched to Emacs and I'm not sure how to get that combination working with eglot.
It's interesting, because 0.0.115 was cut off yesterday followed by 1.0 today.
Those were our release candidates. We have a thorough external ecosystem report that runs as part of CI for each PR, and have an internal job that tests new releases on OpenAI's internal monorepo (as mentioned in OP). But we've gotten timely reports from external users for our 0.0.x releases, and wanted to make sure no deal-breakers came up before we minted one of them as 1.0.
last time i tried ty in like september, it didn't support import suggestions for/from implicit modules (a folder of python files without an init.py), which is a dealbreaker for me.
so, i switched from basedpyright to pyrefly (instead of ty) and i really like it. it's fast (even from ty's benchmarks, you can see it!), a bit more mature, and i really like it's formatting of the hover previews of functions, classes, etc.
i do use ruff, but i'm worried after seeing ty progressing and reaching 1.0 so quickly, as i suspect a lot of vibecoding was involved. ruff has been here for a while, even before agents were this prevalent, and i don't have issues with it.
if it becomes too sloppified, i'll just migrate to something else 🤷