DEV Community

loading...

Discussion on: You should use Python @dataclass

Collapse
theodesp profile image
Theofanis Despoudis

This is the same as case classes in Scala or data classes in Kotlin. They reduce boilerplate code and provide some nice features for comparing or serialising objects.