Skip to content

Commit a7fce5b

Browse files
backwards compatible recursive check for None (2)
Co-authored-by: Julia Signell <jsignell@gmail.com>
1 parent 9f9c5f8 commit a7fce5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pystac_client/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ def get_items(self, *ids: str, recursive: bool = True) -> Iterator["Item_Type"]:
472472
yield from search.items()
473473
else:
474474
self._warn_about_fallback("ITEM_SEARCH")
475-
for item in super().get_items(*ids, recursive=recursive):
475+
for item in super().get_items(
476+
*ids, recursive=recursive is None or recursive
477+
):
476478
call_modifier(self.modifier, item)
477479
yield item
478480

0 commit comments

Comments
 (0)