Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.47.0"
".": "1.47.1"
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 1.47.1 (2024-03-25)

Full Changelog: [v1.47.0...v1.47.1](https://github.com/orbcorp/orb-python/compare/v1.47.0...v1.47.1)

### Bug Fixes

* revert regression with 3.7 support ([#209](https://github.com/orbcorp/orb-python/issues/209)) ([11f44da](https://github.com/orbcorp/orb-python/commit/11f44da6ff3ca5f9f3d762a216fc0e434ae78ba0))


### Chores

* **internal:** formatting change ([#206](https://github.com/orbcorp/orb-python/issues/206)) ([b4bfd91](https://github.com/orbcorp/orb-python/commit/b4bfd91467762d409b0d1d699d914aeb5d730e72))


### Documentation

* **contributing:** fix typo ([#208](https://github.com/orbcorp/orb-python/issues/208)) ([1d2f286](https://github.com/orbcorp/orb-python/commit/1d2f2866dee4556bc0c3124ec73aca49d62b138a))

## 1.47.0 (2024-03-21)

Full Changelog: [v1.46.0...v1.47.0](https://github.com/orbcorp/orb-python/compare/v1.46.0...v1.47.0)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ You can release to package managers by using [the `Publish PyPI` GitHub action](

### Publish manually

If you need to manually release a package, you can run the `bin/publish-pypi` script with an `PYPI_TOKEN` set on
If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
the environment.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "orb-billing"
version = "1.47.0"
version = "1.47.1"
description = "The official Python library for the orb API"
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -130,6 +130,7 @@ reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false


[tool.ruff]
line-length = 120
output-format = "grouped"
Expand Down
8 changes: 5 additions & 3 deletions src/orb/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,14 @@ class GenericModel(BaseGenericModel, BaseModel):


if PYDANTIC_V2:
from pydantic import TypeAdapter as _TypeAdapter

_CachedTypeAdapter = cast("TypeAdapter[object]", lru_cache(maxsize=None)(_TypeAdapter))

if TYPE_CHECKING:
from pydantic import TypeAdapter
else:
from pydantic import TypeAdapter as _TypeAdapter

TypeAdapter = lru_cache(_TypeAdapter)
TypeAdapter = _CachedTypeAdapter

def _validate_non_model_type(*, type_: type[_T], value: object) -> _T:
return TypeAdapter(type_).validate_python(value)
Expand Down
2 changes: 1 addition & 1 deletion src/orb/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "orb"
__version__ = "1.47.0" # x-release-please-version
__version__ = "1.47.1" # x-release-please-version