We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from dataclasses import dataclass, field from typing import Dict from omegaconf import OmegaConf @dataclass class JobConf: env: Dict[str, str] = field(default_factory=dict) cfg = OmegaConf.create({"job": JobConf}) res = OmegaConf.merge(cfg, {"job": {"env": {"abc": "ABC"}}}) assert res.job == {"env": {"abc": "ABC"}}
Results in:
AssertionError: Unsupported value type : <class 'str'> full_key: job.env reference_type=Dict[str, str] object_type=dict full_key: job reference_type=Optional[JobConf] object_type=JobConf full_key: reference_type=Optional[Dict[Any, Any]] object_type=dict
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Results in:
The text was updated successfully, but these errors were encountered: