3 ms·
When you have a compiler/transpiler the process typically is done in two steps, running a type checker on the code and then the actual compilation (which could
by takeda 7y ago
When you have a compiler/transpiler the process typically is done in two steps, running a type checker on the code and then the actual compilation (which could be split into more steps). When you run mypy, you're doing the first step.
The types you define in TypeScript you similarly define in Pythin, they just call them annotations, and there's an option to reference them at runtime, but mypy doesn't work at runtime (perhaps that's where the confusion is from?)