Add support for `_convert_='object'` for Hydra 1.3.0
rsokl opened this issue · 0 comments
rsokl commented
See FR and merged PR in Hydra for additional details.
In short, starting with Hydra 1.3.0, hydra-zen's config-creation functions should support hydra_convert='object'
. This signals to Hydra's instantiate that it is to convert resulting objects to instances of their backing dataclass
E.g.,
from hydra_zen import instantiate, builds, make_config
Conf = make_config(a=builds(dict, b=1), hydra_convert="object") # should raise if local Hydra version is < 1.3.0
assert isinstance(instantiate(Conf), Conf)