From 6da7f35b2b0cfa72c2380c6dcff998a0b823f71b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 02:07:44 +0000 Subject: [PATCH 1/2] fix(parsing): ignore empty metadata --- src/openlayer/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openlayer/_models.py b/src/openlayer/_models.py index 528d5680..ffcbf67b 100644 --- a/src/openlayer/_models.py +++ b/src/openlayer/_models.py @@ -439,7 +439,7 @@ def construct_type(*, value: object, type_: object, metadata: Optional[List[Any] type_ = type_.__value__ # type: ignore[unreachable] # unwrap `Annotated[T, ...]` -> `T` - if metadata is not None: + if metadata is not None and len(metadata) > 0: meta: tuple[Any, ...] = tuple(metadata) elif is_annotated_type(type_): meta = get_args(type_)[1:] From d6f06b6feabe8b68596d3fe2df7d9dcfee6b905d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 18:52:19 +0000 Subject: [PATCH 2/2] release: 0.2.0-alpha.74 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/openlayer/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 87372b91..d0068599 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0-alpha.73" + ".": "0.2.0-alpha.74" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a54064b3..866c2ef4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.2.0-alpha.74 (2025-07-22) + +Full Changelog: [v0.2.0-alpha.73...v0.2.0-alpha.74](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.73...v0.2.0-alpha.74) + +### Features + +* allow output overwrite ([a1ccbc3](https://github.com/openlayer-ai/openlayer-python/commit/a1ccbc307a87130481389935e8fd5348181d5650)) + + +### Bug Fixes + +* **parsing:** ignore empty metadata ([6da7f35](https://github.com/openlayer-ai/openlayer-python/commit/6da7f35b2b0cfa72c2380c6dcff998a0b823f71b)) + ## 0.2.0-alpha.73 (2025-07-17) Full Changelog: [v0.2.0-alpha.72...v0.2.0-alpha.73](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.72...v0.2.0-alpha.73) diff --git a/pyproject.toml b/pyproject.toml index d558b2dd..388aabf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openlayer" -version = "0.2.0-alpha.73" +version = "0.2.0-alpha.74" description = "The official Python library for the openlayer API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openlayer/_version.py b/src/openlayer/_version.py index 3fea27d7..ad26fa33 100644 --- a/src/openlayer/_version.py +++ b/src/openlayer/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openlayer" -__version__ = "0.2.0-alpha.73" # x-release-please-version +__version__ = "0.2.0-alpha.74" # x-release-please-version