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

The thing is, it is only enforced in mypy... code that modifies a Final object (pi = 3 for example) later on will run fine.


Correct- as usual the annotation indicates intent, but is not enforced at runtime.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: