3 ms·
>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/comm
by icebraining 8y ago
>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#untyped-definitions-and-calls https://mypy.readthedocs.io/en/latest/command_line.html#unty... ?
- qwerty456127 8y agoLooks 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.