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/_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:] 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