Skip to content

Commit 00aff72

Browse files
committed
fix mypy checks
1 parent 92ba2c1 commit 00aff72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pystac_client/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,10 @@ def get_items(self, *ids: str, recursive: bool = True) -> Iterator["Item_Type"]:
463463
yield from search.items()
464464
return
465465
except APIError:
466-
child_catalogs = [catalog for catalog, _, _ in self.walk()]
467-
search = self.search(ids=ids, collections=[self, *child_catalogs])
466+
child_catalogs = [catalog.id for catalog, _, _ in self.walk()]
467+
search = self.search(
468+
ids=ids, collections=[self.id, *child_catalogs]
469+
)
468470
else:
469471
search = self.search(ids=ids, collections=[self.id])
470472
yield from search.items()

0 commit comments

Comments
 (0)