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

Some examples use dataclasses, which force type annotations.

Python does not support static typing. Tooling based on type annotations doesn't affect the compilation process (unless you use metaprogramming, like dataclasses do) and cannot force Python to reject the code; it only offers diagnostics.



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

Search: