|
|
|
|
|
by nine_k
307 days ago
|
|
Python type annotations get turned into metadata which other tools may inspect at runtime, but the Python runtime itself does nothing with it. It's just well-structured comments. In Python basically everything is executable, and so are type annotations. |
|
This of course requires your build tool to actually understand the TS type system, which is why it's not supported in tools like esbuild and tsx (which uses esbuild under the hood).