@simon I wonder if dataclasses could be used to help with type safety. (I don't see why not. 🤔)