3 ms·
Ask HN: Is there a way to use Python statically typed or with any type-checking?
I was wondering if python could be used statically typed, or if I could use any type-checking at least. Is there a port of python that's statically typed like TypeScript?
- PaulHoule 3y agohttps://cython.org/ https://cython.org/ and https://mypy-lang.org/ https://mypy-lang.org/
- gorenb 3y agoThanks.
- pid-1 3y ago- For static type checking, I use Pyright. It's bundled with VS Code's Python extension. - When I need runtime type checking, I use Pydantic.
- gorenb 3y agoThank you so much. This is really helpful, genuinely.
- Bostonian 3y agoLPython https://lpython.org/ https://lpython.org/ is an alpha-stage "High performance typed Python compiler".
- Shawnj2 3y agoI think Nuitka also does this