One option would be TypeScript. It has a number of compiler options that allow you to increase the type strictness incrementally.

Also, Python now has type hinting. Not sure how you enable it, but you can require function arguments to have types specified.

Reply to this note

Please Login to reply.

Discussion

Thanks, but not interested in getting involved with any form of JavaScript lol.

Modern Python with something like Pydantic gets you better run time type safety than TypeScript, but it’s still not built into the language itself. I use Python type hinting in all my code now, just because my linter yells at me otherwise 😂

> Thanks, but not interested in getting involved with any form of JavaScript lol.

LOL

I’ve done a bit of JS and HTML, definitely not for me. I’m mostly just a data wrangler, but looking to learn other areas of “backend”