Skip to content
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

bring back deepcopy_metadata to replace freeze_object #502

Merged
merged 1 commit into from May 19, 2020
Merged

Conversation

trehn
Copy link
Member

@trehn trehn commented May 18, 2020

fixes #497

@trehn trehn requested a review from vain May 18, 2020 15:02
else:
new_obj = {}
for key, value in obj.items():
new_key = copy(key)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why this no longer checks if key is in METADATA_TYPES, too? Users can now sneak in unsupported types.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can't because validate_metadata() now exists independently and is called from ._set_layer().

@trehn trehn merged commit a52d08c into master May 19, 2020
@trehn trehn deleted the frozen-deepcopy branch May 19, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow frozen types in metadata
2 participants