4 ms·
The interpreter does not and probably never will check types. The annotations are treated as effectively meaningless at runtime. External tools like mypy can be
by wk_end 2y ago
The interpreter does not and probably never will check types. The annotations are treated as effectively meaningless at runtime. External tools like mypy can be run over your code and check them.
- cwalv 2y agoIt checks types .. it doesn't check type annotations. Just try: $ Python >>> 1 + '3'