4 ms·
> Python is interpretted, not compiled, and completly dynamic. You cannot check much statically. The existence of mypy and other static type checkers for Pytho
by dragonwriter 7y ago
> Python is interpretted, not compiled, and completly dynamic. You cannot check much statically.
The existence of mypy and other static type checkers for Python disproves that; given their existence, warning of an expression producing a type other than “any” or strictly “None” was used in a position where it would neither be passed to another function or assigned to a variable that is used later should be possible. Heck, you could be stricter and only allow strictly “None” in that position.