Skip to content

Commit 7c9e855

Browse files
committed
add comment about backwards compatibility
1 parent a7fce5b commit 7c9e855

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pystac_client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ def get_items(self, *ids: str, recursive: bool = True) -> Iterator["Item_Type"]:
457457
catalog.
458458
"""
459459
if self.conforms_to(ConformanceClasses.ITEM_SEARCH):
460+
# Previously, recursive=None was treated the same as recursive=True.
461+
# This if statement maintains this behaviour for backwards compatibility.
460462
if recursive is not False:
461463
search = self.search(ids=ids)
462464
try:

0 commit comments

Comments
 (0)