Re:Show HN: Gelidum – My Python library to freeze objects
by diegojromero on Tuesday June 15, 2021 @06:00AM
(#27513129)
Interesting, maybe adding a decorator @freeze_final could be a good idea? I'll take a look at it later.
Thank you for your input!
It looks like mypy can actually understand the hint: https://mypy.readthedocs.io/en/stable/final_attrs.html
It sucks that this would require such a substantial effort throughout a codebase, though. I guess that’s just the inherent cost of typed python.