News for hackers. Stuff that matters.
Re:Untyped Python: The Python That Was by sk11001 on Saturday December 02, 2023 @04:50PM (#38502382)
Type hints aren't useless - you can type check your code before you run it (and they make your code more readable).

> What I would love is a mode in python where instead of duck typing everything, its statically typed, unless I do a magical incantation.

You can do this with mypy, you can set it to require types everywhere.

There are no comments on this comment yet.