TL;DR Over the last several years, tools like uv, Pydantic, FastAPI, and type hints have made Python DX feel as modern as TypeScript, with similar performance and type safety.
TL;DR Over the last several years, tools like uv, Pydantic, FastAPI, and type hints have made Python DX feel as modern as TypeScript, with similar performance and type safety.
btw use mypy AND pyright. The OP writes, mypy OR pyright.
mypy – chokes on excessive number of overloads. Annoyingly runs forever.
pyright – more verbose; finds issues mypy never will
So when mypy broke had to use pyright. Then fixed mypy by ignoring a module and some configuration voodoo.