From 701898a3f8e472650a39e2cd22c11f1256847b9c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 16:37:42 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2ad6972..eef567c9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 236 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f8f6ba45132556b8cd3b7aec8578241638d4774e41ac769df78731d919c1825f.yml -openapi_spec_hash: 9c80a378f9fb89d648f47596aef948d9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5c964c697b9545e26471dd5e8c9b83f7efe803561637c072efd8706dfe3f1839.yml +openapi_spec_hash: a8e4426f491b10f93457a6cd517d948e config_hash: 25d7d7aa4882db6189b4b53e8e249e80 From a8d3f484904e405da03895b7e8abbe6922612057 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:38:51 +0000 Subject: [PATCH 2/3] fix(pydantic): do not pass `by_alias` unless set --- src/increase/_compat.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/increase/_compat.py b/src/increase/_compat.py index 786ff42a..e6690a4f 100644 --- a/src/increase/_compat.py +++ b/src/increase/_compat.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload from datetime import date, datetime -from typing_extensions import Self, Literal +from typing_extensions import Self, Literal, TypedDict import pydantic from pydantic.fields import FieldInfo @@ -131,6 +131,10 @@ def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str: return model.model_dump_json(indent=indent) +class _ModelDumpKwargs(TypedDict, total=False): + by_alias: bool + + def model_dump( model: pydantic.BaseModel, *, @@ -142,6 +146,9 @@ def model_dump( by_alias: bool | None = None, ) -> dict[str, Any]: if (not PYDANTIC_V1) or hasattr(model, "model_dump"): + kwargs: _ModelDumpKwargs = {} + if by_alias is not None: + kwargs["by_alias"] = by_alias return model.model_dump( mode=mode, exclude=exclude, @@ -149,7 +156,7 @@ def model_dump( exclude_defaults=exclude_defaults, # warnings are not supported in Pydantic v1 warnings=True if PYDANTIC_V1 else warnings, - by_alias=by_alias, + **kwargs, ) return cast( "dict[str, Any]", From a5da1057c170ee30927795d43ead329d3e223b46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:39:25 +0000 Subject: [PATCH 3/3] release: 0.445.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e34e55c0..6261f8bb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.445.0" + ".": "0.445.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ae5477df..80ef2a68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.445.1 (2026-03-16) + +Full Changelog: [v0.445.0...v0.445.1](https://github.com/Increase/increase-python/compare/v0.445.0...v0.445.1) + +### Bug Fixes + +* **pydantic:** do not pass `by_alias` unless set ([a8d3f48](https://github.com/Increase/increase-python/commit/a8d3f484904e405da03895b7e8abbe6922612057)) + ## 0.445.0 (2026-03-16) Full Changelog: [v0.444.0...v0.445.0](https://github.com/Increase/increase-python/compare/v0.444.0...v0.445.0) diff --git a/pyproject.toml b/pyproject.toml index ab8b7bda..9f31224a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.445.0" +version = "0.445.1" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index 4da0c26c..42a93d35 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.445.0" # x-release-please-version +__version__ = "0.445.1" # x-release-please-version