From e2db24c4834fb657c0c14950e021f224484e3b9b 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:31:54 +0000 Subject: [PATCH 1/5] fix(pydantic): do not pass `by_alias` unless set --- src/profound/_compat.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/profound/_compat.py b/src/profound/_compat.py index 786ff42a..e6690a4f 100644 --- a/src/profound/_compat.py +++ b/src/profound/_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 d00b6bd536ef7ab3a11a558431b5a5678b64b16d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:01:42 +0000 Subject: [PATCH 2/5] fix(deps): bump minimum typing-extensions version --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e41f8553..1c3e7d39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ authors = [ dependencies = [ "httpx>=0.23.0, <1", "pydantic>=1.9.0, <3", - "typing-extensions>=4.10, <5", + "typing-extensions>=4.14, <5", "anyio>=3.5.0, <5", "distro>=1.7.0, <2", "sniffio", diff --git a/uv.lock b/uv.lock index b987b913..a466ca3d 100644 --- a/uv.lock +++ b/uv.lock @@ -857,7 +857,7 @@ requires-dist = [ { name = "httpx-aiohttp", marker = "extra == 'aiohttp'", specifier = ">=0.1.9" }, { name = "pydantic", specifier = ">=1.9.0,<3" }, { name = "sniffio" }, - { name = "typing-extensions", specifier = ">=4.10,<5" }, + { name = "typing-extensions", specifier = ">=4.14,<5" }, ] provides-extras = ["aiohttp"] From a17f8b806b81eb29f01be9b8daaa22b0fd9cdf49 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:34:51 +0000 Subject: [PATCH 3/5] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d55f9db3..6128314b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 21 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound%2Fprofound-f82d340f73aceee67823d6c76abc5f618106b832e597e307bbf1110c03635ec8.yml -openapi_spec_hash: 433917763a79579e17eb660fed44c954 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound%2Fprofound-34f1c8ba06e33fc642739b3c8328d91325aafa8004fb4b6477e830e554c964a8.yml +openapi_spec_hash: e68c348df4acad9163ce98a2dc17ebb1 config_hash: f683a29859356d6968a19ae3e6063b63 From ccfd79e3e84dae8dcc94784662723076d19a0931 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:45:05 +0000 Subject: [PATCH 4/5] chore(internal): tweak CI branches --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39d6eb87..74997ae3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI on: push: - branches-ignore: - - 'generated' - - 'codegen/**' - - 'integrated/**' - - 'stl-preview-head/**' - - 'stl-preview-base/**' + branches: + - '**' + - '!integrated/**' + - '!stl-preview-head/**' + - '!stl-preview-base/**' + - '!generated' + - '!codegen/**' + - 'codegen/stl/**' pull_request: branches-ignore: - 'stl-preview-head/**' From b47c5e95da761c7bf86b722f53e037e013c2959e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:45:26 +0000 Subject: [PATCH 5/5] release: 0.31.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 2 +- src/profound/_version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f81bf992..8305d4ab 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.31.0" + ".": "0.31.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1fdb8c..43086e73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.31.1 (2026-03-16) + +Full Changelog: [v0.31.0...v0.31.1](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.31.0...v0.31.1) + +### Bug Fixes + +* **deps:** bump minimum typing-extensions version ([d00b6bd](https://github.com/cooper-square-technologies/profound-python-sdk/commit/d00b6bd536ef7ab3a11a558431b5a5678b64b16d)) +* **pydantic:** do not pass `by_alias` unless set ([e2db24c](https://github.com/cooper-square-technologies/profound-python-sdk/commit/e2db24c4834fb657c0c14950e021f224484e3b9b)) + + +### Chores + +* **internal:** tweak CI branches ([ccfd79e](https://github.com/cooper-square-technologies/profound-python-sdk/commit/ccfd79e3e84dae8dcc94784662723076d19a0931)) + ## 0.31.0 (2026-03-13) Full Changelog: [v0.30.0...v0.31.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.30.0...v0.31.0) diff --git a/pyproject.toml b/pyproject.toml index 1c3e7d39..d4d1d3f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "profound" -version = "0.31.0" +version = "0.31.1" description = "The official Python library for the profound API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/profound/_version.py b/src/profound/_version.py index 714ee6de..e489b093 100644 --- a/src/profound/_version.py +++ b/src/profound/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "profound" -__version__ = "0.31.0" # x-release-please-version +__version__ = "0.31.1" # x-release-please-version