Astral says ty 1.0 is stable and supports several popular Python frameworks. How does it compare with tools like mypy, Pyright, and Pyrefly? Is there a good reason to switch?
Is ty 1.0 worth trying for Python type checking?
Answers
Speed is an obvious reason to try it, especially on a larger codebase. But a published benchmark won't tell you exactly how it will perform on yours, so run it alongside your current checker and compare both runtime and the errors it reports.
Don't just count diagnostics. Check whether the extra reports catch real problems and whether missing reports are things you care about.
Reply to this answer
There are some features beyond speed. ty offers reachability analysis, intersection and negation types, and support for checking PEP 723 scripts through its uv integration. It also serves as a language server, so the editor experience is worth testing alongside command line checks.
Whether those make a difference depends on your code and workflow. If Pyrefly or another checker already does what you need, there's no particular reason to migrate just because ty reached 1.0.
Reply to this answer
Framework support sounds promising, particularly for Pydantic, Django, pytest, and attrs. I'd test the parts of your project that rely heavily on those libraries before switching. Support doesn't necessarily mean every pattern will be understood the same way as it is by another checker.
Reply to this answer
As for becoming the default, that's hard to call. Some users report being happy with ty already, while others are happy with alternatives. A stable release is a good reason to evaluate it, not proof that everyone should switch.
Reply to this answer
Add your answer
Answers are reviewed before publication.
2a!ferrulepocket_593:
That makes sense. Comparing the reports on framework-heavy code seems more useful than looking at the benchmark alone.