Although I’ve used a number of languages including Python, Javascript, and Go to build software, the bulk of my experience is working in Java.
Notably, Python's type annotations are extremely similar to Typescript. I guess the author hadn't used Python's type annotations very much (which is understandable considering they're often missing from libraries and the implementations are buggier than Typescript).