Skip to content

Commit 28e02f7

Browse files
Merge pull request #28 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.7
2 parents 3a289a4 + 6277b63 commit 28e02f7

5 files changed

Lines changed: 20 additions & 3 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.6"
2+
".": "0.1.0-alpha.7"
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+
## 0.1.0-alpha.7 (2024-07-29)
4+
5+
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
6+
7+
### Chores
8+
9+
* **internal:** add type construction helper ([#27](https://github.com/OneBusAway/python-sdk/issues/27)) ([ceb8e94](https://github.com/OneBusAway/python-sdk/commit/ceb8e94522516242dc400c281133c053ddcc7961))
10+
311
## 0.1.0-alpha.6 (2024-07-29)
412

513
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

pyproject.toml

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

src/onebusaway/_models.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ def build(
406406
return cast(_BaseModelT, construct_type(type_=base_model_cls, value=kwargs))
407407

408408

409+
def construct_type_unchecked(*, value: object, type_: type[_T]) -> _T:
410+
"""Loose coercion to the expected type with construction of nested values.
411+
412+
Note: the returned value from this function is not guaranteed to match the
413+
given type.
414+
"""
415+
return cast(_T, construct_type(value=value, type_=type_))
416+
417+
409418
def construct_type(*, value: object, type_: object) -> object:
410419
"""Loose coercion to the expected type with construction of nested values.
411420

src/onebusaway/_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__ = "onebusaway"
4-
__version__ = "0.1.0-alpha.6" # x-release-please-version
4+
__version__ = "0.1.0-alpha.7" # x-release-please-version

0 commit comments

Comments
 (0)