| ▲ | throwaway2037 a year ago | |||||||||||||
You can use:
to create an immutable data class. | ||||||||||||||
| ▲ | maleldil a year ago | parent [-] | |||||||||||||
While that works (and I use it extensively), it's a bit hacky. You have to use `object.__setattr__` to set attributes in `__init__` or `__post_init__`, which looks so wrong. | ||||||||||||||
| ||||||||||||||