"""Callable objects for use in config files."""fromml_collectionsimportConfigDictfromvis4d.common.typingimportArgsType,GenericFuncfromvis4d.configimportclass_config,delay_instantiation
[docs]defget_callable_cfg(func:GenericFunc,**kwargs:ArgsType)->ConfigDict:"""Return callable config. Args: func (GenericFunc): Callable object. **kwargs (ArgsType): Keyword arguments to pass to the callable. Returns: ConfigDict: Config for the callable. """returndelay_instantiation(class_config(func,**kwargs))