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
This is a copy of facebookresearch/hydra#758 moved to OmegaConf as per @omry 's request.
The following code runs fine while it should raise an error since fudge is supposed to be a list of integers, not an integer.
fudge
from dataclasses import dataclass, field from typing import List from omegaconf import OmegaConf @dataclass class Config: fudge: List[int] = field(default_factory=lambda: []) cfg = OmegaConf.structured(Config) cfg.fudge = 1
The text was updated successfully, but these errors were encountered:
Thanks for reporting!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This is a copy of facebookresearch/hydra#758 moved to OmegaConf as per @omry 's request.
The following code runs fine while it should raise an error since
fudge
is supposed to be a list of integers, not an integer.The text was updated successfully, but these errors were encountered: