Matches dict's get by returning None if there is no item. Args: item: The key of the item to get. default: Value to return if the item is not found. Defaults to None. Returns: The value of the item or the default value.
(self, item: str, default: Any | None = None)
| 893 | return self.stac_json[item] |
| 894 | |
| 895 | def get(self, item: str, default: Any | None = None) -> Any | None: |
| 896 | """Matches dict's get by returning None if there is no item. |
| 897 | |
| 898 | Args: |
| 899 | item: The key of the item to get. |
| 900 | default: Value to return if the item is not found. Defaults to None. |
| 901 | |
| 902 | Returns: |
| 903 | The value of the item or the default value. |
| 904 | """ |
| 905 | return self.stac_json.get(item, default) |
| 906 | |
| 907 | def public_id(self) -> str: |
| 908 | """Gets the public ID of the collection. |
no outgoing calls
no test coverage detected