Skip to content

Commit 6dc2162

Browse files
committed
add warning
1 parent c31ac2d commit 6dc2162

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pystac_client/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737
from pystac_client.mixins import QUERYABLES_ENDPOINT, QueryablesMixin
3838
from pystac_client.stac_api_io import StacApiIO, Timeout
39-
from pystac_client.warnings import DoesNotConformTo, FallbackToPystac, NoConformsTo
39+
from pystac_client.warnings import DoesNotConformTo, FallbackToPystac, NoConformsTo, PystacClientWarning
4040

4141
if TYPE_CHECKING:
4242
from pystac.item import Item as Item_Type
@@ -458,6 +458,11 @@ def get_items(
458458
catalog.
459459
"""
460460
if self.conforms_to(ConformanceClasses.ITEM_SEARCH):
461+
if recursive is False:
462+
warnings.warn(
463+
"Getting items recursively using the /search endpoint "
464+
"(the recursive argument is being ignored).",
465+
PystacClientWarning)
461466
search = self.search(ids=ids)
462467
yield from search.items()
463468
else:

0 commit comments

Comments
 (0)