-
Notifications
You must be signed in to change notification settings - Fork 122
properties
-> extra_fields
for Asset and Link
#510
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
properties
-> extra_fields
for Asset and Link
#510
Conversation
Codecov Report
@@ Coverage Diff @@
## main #510 +/- ##
=======================================
Coverage 93.96% 93.97%
=======================================
Files 71 71
Lines 9991 10000 +9
Branches 1061 1059 -2
=======================================
+ Hits 9388 9397 +9
Misses 434 434
Partials 169 169
Continue to review full report at Codecov.
|
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.
LGTM. The only thing that was initially surprising was the properties
attribute on all extensions, but it made sense after reading for a bit (they aren't extra fields, they really are the extension's data).
Yeah, I thought that was too much to take on in this PR, but I agree that is confusing terminology as well. It also interferes with the naming convention in the Label Extension, since that defines a |
Related Issue(s):
Description:
Adds type annotations for
Link
andAsset
attributes and uses these in API documentation. Changesproperties
toextra_fields
forLink
andAsset
classes to use more consistent naming across PySTAC classes.PR Checklist:
pre-commit run --all-files
)scripts/test
)