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
With this change metadata is a full instance variable of the Assembly class with a default of None. The _copy() method was changed to copy metadata ensuring that metadata added in a sub-assembly is maintained.
A new test verifies that the metadata is present and editable in both the base and sub-assembly.
As implemented here the initialization is to None as this is slightly more memory efficient than an empty dict {}. However, this makes working with metadata a little more complex as elements can't be added until it's created which requires an if / then. Adam probably anticipated this - what do you think of initialization to {}?
Merging #928 (3cdb43c) into master (5f65afd) will decrease coverage by 0.05%.
The diff coverage is 100.00%.
❗ Current head 3cdb43c differs from pull request most recent head fb1c302. Consider uploading reports for the commit fb1c302 to get more accurate results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this change
metadatais a full instance variable of theAssemblyclass with a default ofNone. The_copy()method was changed to copy metadata ensuring that metadata added in a sub-assembly is maintained.A new test verifies that the metadata is present and editable in both the base and sub-assembly.