Support interpolation to keys that contain a non-leading dash character (#880)
OmegaConf now inspects the metadata of structured config fields and ignores fields where metadata["omegaconf_ignore"] is True. (#984)
Bug Fixes
Fix an issue where merging of nested structured configs could incorrectly result in an exception (#1003)
2.2.3 (2022-08-18)
Bug Fixes
Revert an accidental behavior change where implicit conversion from Path to str was disallowed. (#934)
ListConfig sliced assignment now avoids partial updates upon error (#950)
Fix a bug that caused OmegaConf to crash when processing attr classes whose field annotations contained forward-references. (#963)
Improve error message when certain illegal type annotations (such as typing.Sequence) are used in structured configs. (#991)
When parsing yaml: Disallow numbers with trailing underscore from being converted to float. (#838)
API changes and deprecations
In structured config type hints, OmegaConf now treats tuple as equivalent to typing.Tuple, and likewise for dict/Dict and list/List. (#973)
2.2.2 (2022-05-26)
Bug Fixes
Revert an accidental behavior change where implicit conversion from Path to str was disallowed. (#934)
Revert a behavior change where namedtuples and list subclasses were coerced to ListConfig. (#939)
Fix a bug where the oc.dict.values resolver failed when passed a relative dotpath (#942)
2.2.1 (2022-05-17)
OmegaConf 2.2 is a major release. The most significant area of improvement in
2.2 is support for more flexible type hints in structured configs. In addition,
OmegaConf now natively supports two new primitive types, bytes and pathlib.Path.
Features
Support unions of primitive types in structured config type hints (typing.Union) (#144)
Support nested container type hints in structured configs, e.g. dict-of-dict and list-of-list (#427)
Improve support for optional element types in structured config container type hints (typing.Optional) (#460)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on omegaconf to permit the latest version.
Release notes
Sourced from omegaconf's releases.
Changelog
Sourced from omegaconf's changelog.
... (truncated)
Commits
350bdb6
release OmegaConf v2.3.0d883d07
docs: fix typo in set_struct usage documentation9078154
Bump version -> v2.3.0.dev3cb49d22
regression test: to_container supports allow_objects1e3347c
mypy: typing for noxfile.pyea03411
pytest: explicitly add pwd to pythonpath735f15a
unpin pytest in noxfil jupyter notebook tests5fbfedc
python3.11: update docs540d58c
python3.11: add news fragment & update metadata841d921
tests/structured_conf: default_factory for mutable dataclass argsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)