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 Assigning a structured config into a Subscripted Dict error message is not representing correctly the action. To Reproduce
@dataclass class DictClass: foo: Dict[str, int] = field(default_factory=lambda: {"a": 4}) @dataclass class User: age: int = 4 name: str = "foo" cfg = OmegaConf.structured(DictClass) cfg.foo = User() ValidationError: Invalid type assigned : str is not a subclass of int. value: foo full_key: foo.name reference_type=Dict[str, int] object_type=dict
Expected behaviour Structured config assignment to subscripted dicts should't be allowed and should have an descriptive error message.
Additional context
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Assigning a structured config into a Subscripted Dict error message is not representing correctly the action.
To Reproduce
Expected behaviour
Structured config assignment to subscripted dicts should't be allowed and should have an descriptive error message.
Additional context
The text was updated successfully, but these errors were encountered: