Hacker News new | ask | show | jobs
by wilsonnb3 702 days ago
Even though type annotations are part of the language now in Python, they aren’t used by the runtime so it is still essentially the same as jsdoc or sorbet style type checking. More like a really powerful linter than a transpiler like typescript.

Before type annotations were officially added in python 3.5, you could still use mypy for type checking. The only difference being that the type hint format wasn’t standardized across tools.

1 comments

But...TypeScript is the same, types are not used by the runtime.