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

Error merging a compatible dictionary into a MISSING typed object. #269

Closed
omry opened this issue Jun 18, 2020 · 0 comments · Fixed by #273
Closed

Error merging a compatible dictionary into a MISSING typed object. #269

omry opened this issue Jun 18, 2020 · 0 comments · Fixed by #273
Labels
bug Something isn't working

Comments

@omry
Copy link
Owner

omry commented Jun 18, 2020

from omegaconf import OmegaConf, MISSING
from dataclasses import dataclass

@dataclass
class A:
    a : int = 10

@dataclass
class B:
    x : A = MISSING

OmegaConf.merge(B, {"x": {}})
@omry omry added this to the OmegaConf 2.0 milestone Jun 18, 2020
@omry omry added the bug Something isn't working label Jun 19, 2020
@omry omry closed this as completed in #273 Jun 20, 2020
@omry omry modified the milestones: OmegaConf 2.0, 2.0.1 Jun 28, 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.

1 participant