Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

- Switched to Ruff from isort/flake8 [#457](https://github.com/stac-utils/pystac-client/pull/457)
- Move to `FutureWarning` from `DeprecationWarning` for item search interface functions that are to be removed [#464](https://github.com/stac-utils/pystac-client/pull/464)

## [v0.6.1] - 2023-03-14

Expand Down
10 changes: 5 additions & 5 deletions pystac_client/item_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def get_item_collections(self) -> Iterator[ItemCollection]:
"""
warnings.warn(
"get_item_collections() is deprecated, use pages() instead",
DeprecationWarning,
FutureWarning,
)
return self.pages()

Expand All @@ -809,7 +809,7 @@ def item_collections(self) -> Iterator[ItemCollection]:
"""
warnings.warn(
"item_collections() is deprecated, use pages() instead",
DeprecationWarning,
FutureWarning,
)
return self.pages()

Expand All @@ -824,7 +824,7 @@ def get_items(self) -> Iterator[Item]:
"""
warnings.warn(
"get_items() is deprecated, use items() instead",
DeprecationWarning,
FutureWarning,
)
return self.items()

Expand All @@ -839,7 +839,7 @@ def get_all_items(self) -> ItemCollection:
"""
warnings.warn(
"get_all_items() is deprecated, use item_collection() instead.",
DeprecationWarning,
FutureWarning,
)
return self.item_collection()

Expand All @@ -855,6 +855,6 @@ def get_all_items_as_dict(self) -> Dict[str, Any]:
warnings.warn(
"get_all_items_as_dict() is deprecated, use item_collection_as_dict() "
"instead.",
DeprecationWarning,
FutureWarning,
)
return self.item_collection_as_dict()
2 changes: 1 addition & 1 deletion tests/test_item_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def test_deprecations(
max_items=20,
)

with pytest.warns(DeprecationWarning, match=method):
with pytest.warns(FutureWarning, match=method):
result = operator.methodcaller(method)(search)

expected = operator.methodcaller(alternative)(search)
Expand Down