-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
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
Struct assign #587
Struct assign #587
Conversation
…o longer raises ValidationError
@odelalleau , take a second look. |
Earlier in if is_structured_config(value):
self._metadata.object_type = None
data = get_structured_config_data(
value,
allow_objects=self._get_flag("allow_objects"),
)
for k, v in data.items():
self.__setitem__(k, v)
self._metadata.object_type = get_type_of(value) Do we need to worry about using |
That's a good point, maybe the |
Took a look. Indeed it was also needed to be in that code path.
It's breaking a bunch of tests and I don't feel like digging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me!
Regarding:
It's breaking a bunch of tests and I don't feel like digging.
It may be related to the manipulation of flags in the DictConfig
code path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too!
Fixes #586