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.

you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 10 months ago

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.

  • source