Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
wk_end
1y ago
0 comments
Share
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.
0 comments
default
newest
oldest
cwalv
1y ago
It checks types .. it doesn't check type annotations.
Just try:
$ Python >>> 1 + '3'
j
/
k
navigate · click thread line to collapse