Skip to content
New issue

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

Merging structured class with a wrong dict doesn't raise an exception. #327

Closed
pereman2 opened this issue Aug 12, 2020 · 0 comments · Fixed by #330
Closed

Merging structured class with a wrong dict doesn't raise an exception. #327

pereman2 opened this issue Aug 12, 2020 · 0 comments · Fixed by #330
Labels
bug Something isn't working

Comments

@pereman2
Copy link
Contributor

pereman2 commented Aug 12, 2020

Example :

@dataclass
class Module:
    name: str = MISSING
    classes: List[str] = MISSING


@dataclass
class Config:
    modules: List[Module] = MISSING

print(OmegaConf.merge(Config, {"modules": [{"should_error": "foo"}]}))
@omry omry added the bug Something isn't working label Aug 12, 2020
@omry omry added this to the OmegaConf 2.0.1 milestone Aug 12, 2020
@omry omry closed this as completed in #330 Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants