Skip to content

Commit 9a5fb0b

Browse files
committed
fix: set _stac_io on collection client
1 parent 2d327bb commit 9a5fb0b

File tree

4 files changed

+195
-1
lines changed

4 files changed

+195
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Actually set `timeout` when initializing `StacApiIO` [#709](https://github.com/stac-utils/pystac-client/pull/709)
13+
- Set `_stac_io` on `CollectionClient` when reading [#709](https://github.com/stac-utils/pystac-client/pull/709)
14+
1015
## [v0.8.2] - 2024-05-30
1116

1217
### Added

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)