diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39d6eb8..74997ae 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/**' diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f81bf99..8305d4a 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/.stats.yml b/.stats.yml index d55f9db..6128314 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1fdb8..43086e7 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 e41f855..d4d1d3f 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" @@ -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/src/profound/_compat.py b/src/profound/_compat.py index 786ff42..e6690a4 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]", diff --git a/src/profound/_version.py b/src/profound/_version.py index 714ee6d..e489b09 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 diff --git a/uv.lock b/uv.lock index b987b91..a466ca3 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"]