Skip to content

Add "inheritence" #1239

Open
Open
@gadomski

Description

@gadomski

In STAC 1.1, we are probably going to explicitly state that assets "inherit" attributes from items. E.g., for this (shortened) item:

{
  "properties": {"foo": "bar"},
  "assets": {"data": {"href": "example.tif"}}
}

pystac should behave like this:

assert item.assets["data"].foo == "bar"

This might require some strange __getattr__ magic, which might be really hard to do while preserving typing.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions