Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It checks types .. it doesn't check type annotations.

Just try:

  $ Python
  >>> 1 + '3'




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: