-
The conversion back to dataclasses doesn't seem to work, when they are specified in a list. from collections.abc import Sequence
from dataclasses import dataclass
from hydra_zen import store, zen, builds
from hydra_zen.typing import ZenConvert
@dataclass
class B:
x: int
def app(dc: Sequence[B]) -> None:
assert all(isinstance(b, B) for b in dc)
Config = builds(
app,
populate_full_signature=True,
dc=[B(x=0)],
zen_convert=ZenConvert(dataclass=True),
hydra_convert='all'
)
store(Config, name="config")
if __name__ == "__main__":
store.add_to_hydra_store()
zen(app).hydra_main(config_path=None, config_name="config", version_base="1.3") It fails with an assertion error. The entry in Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
rsokl
Apr 6, 2023
Replies: 1 comment 2 replies
-
Could you repost this as an issue? It sounds like it is a bug that should be fixed |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rsokl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you repost this as an issue? It sounds like it is a bug that should be fixed