News for hackers. Stuff that matters.
Re:Pyrefly vs. Ty: Comparing Python's Two New Rust-Based Typ... by genshii on Tuesday May 27, 2025 @02:13PM (#44109317)
This makes sense to me and is exactly what TypeScript does. Implicit `any`s do not raise TypeScript errors (which, by definition, is expected), but obviously that means if there is an `any`, it's potentially unsafe. To deal with this, you can turn on `noImplicitAny` or strict mode (which 99% of projects probably have enabled anyway).

Difference here that strict mode is a tsc option vs. having this kind of rule in the linter (ruff), but the end result is the same.

Anyway, that was a long winded way of saying that ty or ruff definitely needs its own version of a "strict" mode for type checking. :)

There are no comments on this comment yet.