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 list with invalid values to a ListConfig keeps the content modified after raising the error. To Reproduce
@dataclass class ListClass: list: List[int] = field(default_factory=lambda: [1]) cfg = OmegaConf.structured(ListClass) try: cfg.list = [1, 2, "foo"] except: pass print(cfg.list) # output [1, 2]
Expected behavior cfg.list should return to be [1] Additional context
The text was updated successfully, but these errors were encountered:
Fix #433 bug where ListConfig is modified after assignment of wrong v…
7b6e645
…alue. (#434)
Successfully merging a pull request may close this issue.
Describe the bug
Assigning a list with invalid values to a ListConfig keeps the content modified after raising the error.
To Reproduce
Expected behavior
cfg.list should return to be [1]
Additional context
The text was updated successfully, but these errors were encountered: