logoalt Hacker News

linsomniactoday at 12:04 AM1 replyview on HN

Correct, currently in Python the type checking is implemented more in a linting phase than in a compiling or runtime phase. Though you can also get it from editors that do LSP, they'll show you type errors while editing the code.


Replies

tl2dotoday at 12:11 AM

Thanks linsomniac and exyi. I didn't realize Python's type hints are checked by linters, not the compiler. Learned something today.