adapy
adapy copied to clipboard
Use dataclasses where possible
Move to using dataclasses wherever possible to improve general readability of classes
Note to self.
Dataclasses + inheritance is not ideal since you loose control of re-ordering of positional arguments for subclasses. I.e. the primary data for Beam , Plate etc. classes would have to only rely on keyword arguments, which does not appear to be ergonomically appealing
Having seen the limitations of kwarg ordering of inherited subclasses when using dataclasses, this is considered (at the time of writing) not applicable