Is it possible to define a target using Structured Configs to avoid redefining all the parameters?
def good(config: Config):
pass
def bad(param1, param2):
pass
@dataclass
class Config:
param1
param2
_target_: Any = good
# _target_: Any = bad
# _target_: str = 'Config.also_good'
def also_good(self):
pass
What type annotation should I use for _target_
in case of a class, function, or method? When I used Any I got
omegaconf.errors.UnsupportedValueType: Value 'function' is not a supported primitive type
full_key: _target_