You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first print will be as expected, and the second print will be empty dictionary.
One workaround I have figured out is to set cfg2.__dict__['_metadata'].ref_type = typing.Any right after creating it, and it works as expected.
Expected behavior
It is expected for both prints to be the same, potentially with some interpolation resolution happening on access.
Additional context
OmegaConf version: 2.0.4
Python version: 3.7.9
Operating system : Ubuntu 16.04.7 LTS
Please provide a minimal repro
The text was updated successfully, but these errors were encountered:
Describe the bug
Under certain conditions, setting an entry of config to itself ends up clearing the entry entirely.
To Reproduce
The first print will be as expected, and the second print will be empty dictionary.
One workaround I have figured out is to set
cfg2.__dict__['_metadata'].ref_type = typing.Any
right after creating it, and it works as expected.Expected behavior
It is expected for both prints to be the same, potentially with some interpolation resolution happening on access.
Additional context
The text was updated successfully, but these errors were encountered: