Skip to content

Commit 4a317ca

Browse files
committed
fix: set _stac_io on collection client
1 parent 2d327bb commit 4a317ca

File tree

3 files changed

+190
-1
lines changed

3 files changed

+190
-1
lines changed

pystac_client/stac_api_io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,11 @@ def stac_object_from_dict(
274274
return result
275275

276276
if info.object_type == pystac.STACObjectType.COLLECTION:
277-
return pystac_client.collection_client.CollectionClient.from_dict(
277+
result = pystac_client.collection_client.CollectionClient.from_dict(
278278
d, href=str(href), root=root, migrate=False, preserve_dict=preserve_dict
279279
)
280+
result._stac_io = self
281+
return result
280282

281283
if info.object_type == pystac.STACObjectType.ITEM:
282284
return pystac.Item.from_dict(

0 commit comments

Comments
 (0)