Ty 1.0: an extremely fast Python type checker and language server
astral.sh - 60 poäng - 10 kommentarer - 5818 sekunder sedan
Kommentarer (7)
- fishgoesblub - 1293 sekunder sedanCurious to see how Ty now compares to Pyrefly in practice. Had to switch from Ty because it was rather poor compared to Pyrefly at the time. A bit spoiled for choice in regards to Python type checkers now.
- wilkystyle - 1585 sekunder sedanCongrats to the Astral team! I've been using ty since the alpha days. Was so excited to replace pylsp with it, and it's been a mainstay in my arsenal ever since. It's gotten so reliable over the past year or so that I forgot it was pre-1.0 software.
- BewareTheYiga - 910 sekunder sedanCongrats! This is a huge milestone. Out of curiosity, what will it take to get Ruff and UV to 1.0.0?
- ocamoss - 227 sekunder sedancongrats to the team!
- ethnrob - 4742 sekunder sedanSo if OpenAI owns Astral, and Microsoft has Pyright, don't two companies effectively dominate both Python and TypeScript ecosystems?
I have nothing against Ty, it is quite powerful, and released under MIT.
This blog post also tells us that Ty is used extensively at OpenAI, like we're meant to be impressed.
- 122339817 - 769 sekunder sedanI thought everything can be vibe coded in Rust. Turns out OpenAI are Luddites and use Python.
Remember when Astral told us in 2024 they would not sell out?
- chrikrah - 2683 sekunder sedanTried it on a 10k loc project which never had a type checker: 0.5s, 450 results. More than 400 of them are one pattern, a dict of kwargs splatted into a call (`*kw`). ty infers the dict as `dict[str, str | int]` and flags every parameter against that. Is there any way to type the dict once, or is a TypedDict the way to go?
Nördnytt! 🤓