Closed abbiemery closed 1 year ago
Current thoughts on approaches to this, mainly so I can pick it up again at some point without having to revisit it all.
Is it just the dunder methods you want to avoid? As it's currently set up, the type specified in the yaml file has to be a subclass of ComponentConfig
which precludes using a top-level function directly.
In rough order of complexity/magic
Closed as won't do for now. Can be reopened as a 'redesign ComponentConfig' ticket Is this is wanted in the future.
Currently to set up a component you have to override the
__call__
method ofComponentConfig
. This is user facing so should be made to avoid a dunder method.Maybe something like: