Skip to content

Commit 4454f24

Browse files
Merge pull request #271 from OneBusAway/release-please--branches--main--changes--next
release: 1.8.2
2 parents 40b472d + b246068 commit 4454f24

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-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.8.1"
2+
".": "1.8.2"
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.8.2 (2025-02-26)
4+
5+
Full Changelog: [v1.8.1...v1.8.2](https://github.com/OneBusAway/python-sdk/compare/v1.8.1...v1.8.2)
6+
7+
### Chores
8+
9+
* **internal:** properly set __pydantic_private__ ([#270](https://github.com/OneBusAway/python-sdk/issues/270)) ([b14c2b5](https://github.com/OneBusAway/python-sdk/commit/b14c2b5b6f6bf376fcf0aeb6c3ae0536a222c131))
10+
311
## 1.8.1 (2025-02-22)
412

513
Full Changelog: [v1.8.0...v1.8.1](https://github.com/OneBusAway/python-sdk/compare/v1.8.0...v1.8.1)

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 = "1.8.1"
3+
version = "1.8.2"
44
description = "The official Python library for the onebusaway-sdk API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/onebusaway/_base_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
ModelBuilderProtocol,
6464
)
6565
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
66-
from ._compat import model_copy, model_dump
66+
from ._compat import PYDANTIC_V2, model_copy, model_dump
6767
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
6868
from ._response import (
6969
APIResponse,
@@ -207,6 +207,9 @@ def _set_private_attributes(
207207
model: Type[_T],
208208
options: FinalRequestOptions,
209209
) -> None:
210+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
211+
self.__pydantic_private__ = {}
212+
210213
self._model = model
211214
self._client = client
212215
self._options = options
@@ -292,6 +295,9 @@ def _set_private_attributes(
292295
client: AsyncAPIClient,
293296
options: FinalRequestOptions,
294297
) -> None:
298+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
299+
self.__pydantic_private__ = {}
300+
295301
self._model = model
296302
self._client = client
297303
self._options = options

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__ = "1.8.1" # x-release-please-version
4+
__version__ = "1.8.2" # x-release-please-version

0 commit comments

Comments
 (0)