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
Describe the bug
Given a dataclass instance obj, the DictConfig object OmegaConf.structured(obj) created from obj should have fields that correspond to the fields of the original object obj.
Currently the above fails if obj has a field with a default_factory and with a user-assigned MISSING value, e.g. if the user creates obj like this:
obj=MyConf(fieldname=MISSING)
where MyConf.fieldname has a non-missing default_factory.
Closely related to #830.
Describe the bug
Given a dataclass instance
obj
, theDictConfig
objectOmegaConf.structured(obj)
created fromobj
should have fields that correspond to the fields of the original objectobj
.Currently the above fails if
obj
has a field with adefault_factory
and with a user-assignedMISSING
value, e.g. if the user createsobj
like this:where
MyConf.fieldname
has a non-missingdefault_factory
.To Reproduce
Expected behavior
All four assertions above should pass.
Additional context
master
branchThe text was updated successfully, but these errors were encountered: