Skip to content

Commit a68fd20

Browse files
release: 1.10.1 (#55)
* fix(parsing): ignore empty metadata * release: 1.10.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 0be8b33 commit a68fd20

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
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.10.0"
2+
".": "1.10.1"
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.10.1 (2025-07-22)
4+
5+
Full Changelog: [v1.10.0...v1.10.1](https://github.com/knocklabs/knock-python/compare/v1.10.0...v1.10.1)
6+
7+
### Bug Fixes
8+
9+
* **parsing:** ignore empty metadata ([a005f4a](https://github.com/knocklabs/knock-python/commit/a005f4a5439d93015041b87caecd9246ddc120f2))
10+
311
## 1.10.0 (2025-07-15)
412

513
Full Changelog: [v1.9.0...v1.10.0](https://github.com/knocklabs/knock-python/compare/v1.9.0...v1.10.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "knockapi"
3-
version = "1.10.0"
3+
version = "1.10.1"
44
description = "The official Python library for the knock API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/knockapi/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def construct_type(*, value: object, type_: object, metadata: Optional[List[Any]
439439
type_ = type_.__value__ # type: ignore[unreachable]
440440

441441
# unwrap `Annotated[T, ...]` -> `T`
442-
if metadata is not None:
442+
if metadata is not None and len(metadata) > 0:
443443
meta: tuple[Any, ...] = tuple(metadata)
444444
elif is_annotated_type(type_):
445445
meta = get_args(type_)[1:]

src/knockapi/_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__ = "knockapi"
4-
__version__ = "1.10.0" # x-release-please-version
4+
__version__ = "1.10.1" # x-release-please-version

0 commit comments

Comments
 (0)