News for hackers. Stuff that matters.
Re:OCaml for the Masses (2011) by icebraining on Monday November 26, 2018 @10:51AM (#18534136)
>I also hope an option to force "type hints" is going to be introduced in future versions of Python

Have you checked https://mypy.readthedocs.io/en/latest/command_line.html#unty... ?

Re:OCaml for the Masses (2011) by qwerty456127 on Monday November 26, 2018 @01:25PM (#18535575)
Looks curious, thanks. Nevertheless it (or a part of it) has to become a part of the CPython standard and get switched on by default at some point for the quality of the ecosystem code to start increasing by means of more Python coders being gently pushed to type-mindfulness. I also couldn't find a flag that would rise warnings when a value of a non-matching type gets assigned to a variable with a defined type hint yet allow everything else - IMHO such one would be the most useful.