-
Notifications
You must be signed in to change notification settings - Fork 122
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
Deepcopy Asset.extra_fields when cloning #826
Deepcopy Asset.extra_fields when cloning #826
Conversation
2637a20
to
50a3886
Compare
Thank you @duckontheweb I'd also be fine with a shallow copy of Asset.extra_fields because that is what the documentation says, but also fine with a deep copy if documented properly. |
@m-mohr Which documentation are you referring to here? The |
Oh yeah, sorry, I was confusing this with the description of |
I updated the |
Codecov Report
@@ Coverage Diff @@
## main #826 +/- ##
==========================================
+ Coverage 94.33% 94.34% +0.01%
==========================================
Files 83 83
Lines 11898 11923 +25
Branches 1389 1390 +1
==========================================
+ Hits 11224 11249 +25
Misses 495 495
Partials 179 179
Continue to review full report at Codecov.
|
Related Issue(s):
Description:
Uses
deepcopy
onAsset.extra_fields
when cloning so that mutating the cloned Asset's extra fields does not mutate the original asset.PR Checklist:
pre-commit run --all-files
)scripts/test
)