
May 30, 2022
1:58 a.m.
I should add that… I did find it is already possible to define a dataclass field for a property that is implemented as `@property`-decorated function, but it's a bit of a hack. It only works if the property has a setter that succeeds, even it the attribute is supposed to be read-only or if it is not appropriate for it's setter to be called during initialization.