logoalt Hacker News

hauntsaninjalast Wednesday at 5:53 AM1 replyview on HN

Unknown has the exact same type system semantics as Any.

Unknown is a pyright specific term for inferred Any that is used as the basis for enabling additional diagnostics prohibiting gradual typing.

Notably, this is quite different from TypeScript’s unknown, which is type safe.


Replies

ErikBjareyesterday at 8:55 AM

This was confusing me, thanks.