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
from dataclasses import dataclass from omegaconf import OmegaConf, MISSING @dataclass class DBConfig: host: str = "localhost" port: int = MISSING driver: str = MISSING @dataclass class PostGreSQLConfig(DBConfig): driver: str = "postgresql" port: int = 5432 timeout: int = 10 assert OmegaConf.merge(DBConfig, PostGreSQLConfig) == PostGreSQLConfig
Result:
omegaconf.errors.ConfigKeyError: Key 'timeout' not in 'DBConfig' full_key: timeout reference_type=Optional[DBConfig] object_type=DBConfig
The text was updated successfully, but these errors were encountered:
omry
Successfully merging a pull request may close this issue.
Result:
The text was updated successfully, but these errors were encountered: