Skip to content

fix: V2 summaries#1710

Merged
gadomski merged 4 commits intostac-utils:v2from
jsignell:v2-summaries
May 5, 2026
Merged

fix: V2 summaries#1710
gadomski merged 4 commits intostac-utils:v2from
jsignell:v2-summaries

Conversation

@jsignell
Copy link
Copy Markdown
Member

@jsignell jsignell commented Apr 23, 2026

I don't quite have typing figured out on Summaries yet, but wanted to get this up.

This one is ready to go

Comment thread scripts/pull-static
VERSION="1.5.0"
SRC="https://cdn.jsdelivr.net/npm/@radiantearth/stac-fields@$VERSION/fields-normalized.json"
HERE=$(dirname "$0")
DEST=$(dirname "$HERE")/pystac/static/fields-normalized.json
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tylanderson if you do mkdir on this DEST and then run ./scripts/pull-static with this diff you'll get your static file populated.

Comment thread src/pystac/item.py
@final
class Properties(Basics, DateTime, Licensing, Providers, Instrument):
class Properties(
MutableMapping[str, Any], Basics, DateTime, Licensing, Providers, Instrument
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This makes it so properties can pretty much be treated like a dict. We might want to do this in some other places in the codebase.

@jsignell
Copy link
Copy Markdown
Member Author

Ok so I was worried about changing Summaries because it is used a lot in the extension classes which we are trying not to change too much, but it looks like they only use get_list and get_range. So I will see if there is a way to simplify the class a bit and mostly just offer those two.

@jsignell
Copy link
Copy Markdown
Member Author

Ok I didn't quite get the typing working, but I did rewrite Summaries

@jsignell jsignell marked this pull request as ready for review April 24, 2026 18:01
@jsignell jsignell mentioned this pull request Apr 27, 2026
@jsignell
Copy link
Copy Markdown
Member Author

Ok I have the typing working for summaries.

@gadomski gadomski merged commit 75c771e into stac-utils:v2 May 5, 2026
14 checks passed
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.

2 participants