4 ms·
As as understand it, those hints are only hints to human readers. There is no standard tooling that actually does any type checking, either statically or dynami
by tom_mellior 9y ago
As as understand it, those hints are only hints to human readers. There is no standard tooling that actually does any type checking, either statically or dynamically (although such tooling can be built using Python's reflective capabilities). So while adding the hints may be valuable documentation, it wouldn't solve the problem of "showing how types protect against errors in the Adversity section".
- gtklocker 9y agoThere's mypy.
- tom_mellior 9y agoSorry, by "no standard tooling" I meant "no standard tooling" in the sense of no tooling in the standard Python distribution.
- nullp0tr 9y agoSeeing that mypy is under github.com/python/, you can easily argue that it is in fact the standard tool for type-checking python code.
- milliams 9y agoAnd also that the second highest contributor is Guido van Rossum (https://github.com/python/mypy/graphs/contributors https://github.com/python/mypy/graphs/contributors).
- tom_mellior 9y agoFair enough, those are reasonable arguments the grandparents could (and should) have made.
- bringtheaction 9y agoLike the other commenter said, check out mypy. http://mypy-lang.org/ http://mypy-lang.org/