|
|
|
|
|
by half0wl
1217 days ago
|
|
Same. I treat them as immutable DTOs [0], or "value objects" if you will instead of "just a plain class". An unfortunate drawback is that not everyone is familiar with the concept of immutability, especially in the world of Python. It can also be confusing to explain how "frozen dataclasses are not actually the Python classes you know" :-/ [0] https://en.wikipedia.org/wiki/Data_transfer_object |
|