Date: Wed, 14 Apr 2021 09:57:49 +1000 From: Chris Angelico firstname.lastname@example.org Subject: [Python-Dev] Re: Typing syntax and ecosystem, take 2
You're advocating an approach that absolutely mandates running the type checker, but then caches the results in an executable file (the JS file built from the TS source). Python already has a caching system
- the .pyc files - so if you're importing the same file more than
once, the cost of parsing type annotations is pretty much equivalent to the cost of doing it in TypeScript.
Thinking about it, if mypy compiled to .pyc for execution by the Python interpreter most of what I'm complaining about would go away.