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
Describe the bug DictConfig with primitive type as element type is allowing other structured configs as a valid element.
To Reproduce
@dataclass class A: pass @dataclass class C: foo: Dict[str, int] = field(default_factory=lambda: {"a": A()}) cfg = OmegaConf.structured(C) # Doesn't raise an error
Expected behaviour
It should raise an error when assigning structured configs to a different element type in DictConfigs.
context
The text was updated successfully, but these errors were encountered:
Fix bug assigning structured classes of different element_type in dic…
ea210fb
…tconfigs #386 (#395)
Successfully merging a pull request may close this issue.
Describe the bug
DictConfig with primitive type as element type is allowing other structured configs as a valid element.
To Reproduce
Expected behaviour
It should raise an error when assigning structured configs to a different element type in DictConfigs.
context
The text was updated successfully, but these errors were encountered: