Re:Ty: A fast Python type checker and language server
by smithkl42 on Wednesday May 07, 2025 @05:04PM
(#43920542)
And in the process, they ended up creating an extremely powerful type system that ~nobody outside of that original team can (fully) understand.
[ Parent
| on HN ]
Re:Ty: A fast Python type checker and language server
by dathinab on Wednesday May 07, 2025 @05:25PM
(#43920722)
IMHO they created type annotations, not a type system
and how you use the type annotations to indicate a type system is inconsistent and incomplete (e.g. NoneType vs. None for inconsistency and a lot of mess related to mataclasses (e.g. Enum) and supporting type annotations for them for incomplete)
the fact that even today something as fundamental as enums have issues with type checking _which are not just type checker incompetence_ is I think a good way to highlight what mess it is
or that `Annotated[]` was only added in 3.9 and has a ton of visual overhead even through its essential for a lot of clean definitions in modern python code (where for backwards compatibility there is often some other way, which can be de-facto wrongly typed but shouldn't be type linted, have fun type checkers).
Re:Ty: A fast Python type checker and language server
by simonw on Wednesday May 07, 2025 @05:37PM
(#43920817)
Parent comment was talking about TypeScript, not Python.
Re:Ty: A fast Python type checker and language server
by johnfn on Thursday May 08, 2025 @11:46AM
(#43927299)
How many people understand the intricacies of any complex language or type system? Though I think one of the great things about TS is that you need to understand none of it in order to do `npm install @types/lodash` and get all the benefits.