OmegaConf 2.0.1
2.0.1 (2020-09-01)
This is mostly a bugfix release.
The notable change is the config.pretty() is now deprecated in favor of OmegaConf.to_yaml().
Bug Fixes
- Fixes merging of dict into a Dict[str, str] (#246)
- Fix DictConfig created from another DictConfig drops node types (#252)
- Relax save and load APIs to accept IO[Any] (#253)
- Report errors when loading YAML files with duplicate keys (#257)
- Fix a bug initializing config with field typed as Any with Structured Config object (#260)
- Merging into a MISSING Structured config node expands the node first to ensure the result is legal (#269)
- Fix merging into a config with a read only node if merge is not mutating that node (#271)
- Fix OmegaConf.to_container() failing in some cases when the config is read-only (#275)
- Optional[Tuple] types are now supported as type annotation in Structured Configs. (#279)
- Support indirect interpolation (#283)
- OmegaConf.save() can now save dataclass and attr classes and instances (#287)
- OmegaConf.create() doesn't modify yaml.loader.SafeLoader (#289)
- Fix merging a sublcass Structured Config that adds a field (#291)
- strings containing valid ints and floats represented are converted to quoted strings instead of the primitives in pretty() (#296)
- Loading an empty YAML file now returns an empty DictConfig (#297)
- Fix bug that allowed an annotated List and Dict field in a Structured Config to be assigned a value of a different type. (#300)
- merge_with() now copied flags (readonly, struct) into target config (#301)
- Fix DictConfig setdefault method to behave as it should (#304)
- Merging a missing list onto an existing one makes the target missing (#306)
- Fix error when merging a structured config into a field with None value (#310)
- Fix a bug that allowed the assignment of containers onto fields annotated as primitive types (#324)
- Merging a List of a structured with a different type now raises an error. (#327)
- Remove dot-keys usage warning (#332)
- Fix merging into an Optional[List[Any]] = None (#336)
- Fix to properly merge list of dicts into a list of dataclasses (#348)
- OmegaConf.to_yaml() now properly support Structured Configs (#350)
Deprecations and Removals
- cfg.pretty() is deprecated in favor of OmegaConf.to_yaml(config). (#263)