diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1b159305..b85eea74 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.29.0" + ".": "4.29.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index f2277cfc..4594d63a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-cbce25283cb9c3282e03e08b7ee81395436af7d0eb480ffcbab307b5bf1c92a0.yml openapi_spec_hash: c286edf46db95dee05eb6f180ac24ab0 -config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 +config_hash: dd4343ce95871032ef6e0735a4ca038c diff --git a/CHANGELOG.md b/CHANGELOG.md index 723673da..469ae871 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.29.1 (2025-10-29) + +Full Changelog: [v4.29.0...v4.29.1](https://github.com/orbcorp/orb-python/compare/v4.29.0...v4.29.1) + +### Bug Fixes + +* **client:** close streams without requiring full consumption ([535143f](https://github.com/orbcorp/orb-python/commit/535143fa3295099fbd605a336f5ea24825b46ef4)) + ## 4.29.0 (2025-10-23) Full Changelog: [v4.28.0...v4.29.0](https://github.com/orbcorp/orb-python/compare/v4.28.0...v4.29.0) diff --git a/pyproject.toml b/pyproject.toml index 1a6de0e4..7122bab6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.29.0" +version = "4.29.1" description = "The official Python library for the orb API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/orb/_streaming.py b/src/orb/_streaming.py index 757492e8..4efca455 100644 --- a/src/orb/_streaming.py +++ b/src/orb/_streaming.py @@ -57,9 +57,8 @@ def __stream__(self) -> Iterator[_T]: for sse in iterator: yield process_data(data=sse.json(), cast_to=cast_to, response=response) - # Ensure the entire stream is consumed - for _sse in iterator: - ... + # As we might not fully consume the response stream, we need to close it explicitly + response.close() def __enter__(self) -> Self: return self @@ -121,9 +120,8 @@ async def __stream__(self) -> AsyncIterator[_T]: async for sse in iterator: yield process_data(data=sse.json(), cast_to=cast_to, response=response) - # Ensure the entire stream is consumed - async for _sse in iterator: - ... + # As we might not fully consume the response stream, we need to close it explicitly + await response.aclose() async def __aenter__(self) -> Self: return self diff --git a/src/orb/_version.py b/src/orb/_version.py index 4e1e9193..95141b68 100644 --- a/src/orb/_version.py +++ b/src/orb/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "orb" -__version__ = "4.29.0" # x-release-please-version +__version__ = "4.29.1" # x-release-please-version