Skip to content

Commit 6f44956

Browse files
authored
Merge pull request #58 from hubmapconsortium/release-please--branches--main--changes--next
release: 1.0.0-alpha.37
2 parents ecc9494 + c4e5814 commit 6f44956

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0-alpha.36"
2+
".": "1.0.0-alpha.37"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.0.0-alpha.37 (2025-10-30)
4+
5+
Full Changelog: [v1.0.0-alpha.36...v1.0.0-alpha.37](https://github.com/hubmapconsortium/search-python-sdk/compare/v1.0.0-alpha.36...v1.0.0-alpha.37)
6+
7+
### Bug Fixes
8+
9+
* **client:** close streams without requiring full consumption ([16b30a2](https://github.com/hubmapconsortium/search-python-sdk/commit/16b30a23bf54daf97ef4792fe6b58d0e75695ef0))
10+
311
## 1.0.0-alpha.36 (2025-10-18)
412

513
Full Changelog: [v1.0.0-alpha.35...v1.0.0-alpha.36](https://github.com/hubmapconsortium/search-python-sdk/compare/v1.0.0-alpha.35...v1.0.0-alpha.36)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hubmap_search_sdk"
3-
version = "1.0.0-alpha.36"
3+
version = "1.0.0-alpha.37"
44
description = "The official Python library for the hubmap-search-sdk API"
55
dynamic = ["readme"]
66
license = "MIT"

src/hubmap_search_sdk/_streaming.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ def __stream__(self) -> Iterator[_T]:
5757
for sse in iterator:
5858
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
5959

60-
# Ensure the entire stream is consumed
61-
for _sse in iterator:
62-
...
60+
# As we might not fully consume the response stream, we need to close it explicitly
61+
response.close()
6362

6463
def __enter__(self) -> Self:
6564
return self
@@ -121,9 +120,8 @@ async def __stream__(self) -> AsyncIterator[_T]:
121120
async for sse in iterator:
122121
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
123122

124-
# Ensure the entire stream is consumed
125-
async for _sse in iterator:
126-
...
123+
# As we might not fully consume the response stream, we need to close it explicitly
124+
await response.aclose()
127125

128126
async def __aenter__(self) -> Self:
129127
return self

src/hubmap_search_sdk/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "hubmap_search_sdk"
4-
__version__ = "1.0.0-alpha.36" # x-release-please-version
4+
__version__ = "1.0.0-alpha.37" # x-release-please-version

0 commit comments

Comments
 (0)