diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc76aa7..1d32fa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: permissions: contents: read id-token: write - runs-on: depot-ubuntu-24.04 + runs-on: ${{ github.repository == 'stainless-sdks/replicate-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v4 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 376f5f8..d700ccd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0-alpha.20" + ".": "2.0.0-alpha.21" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b579ca..71ae0d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 2.0.0-alpha.21 (2025-08-26) + +Full Changelog: [v2.0.0-alpha.20...v2.0.0-alpha.21](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.20...v2.0.0-alpha.21) + +### Bug Fixes + +* avoid newer type syntax ([7a3be3b](https://github.com/replicate/replicate-python-stainless/commit/7a3be3bb9ec3b1b2476b394fe9733ff0726d3fd0)) + + +### Chores + +* **internal:** change ci workflow machines ([71bfc70](https://github.com/replicate/replicate-python-stainless/commit/71bfc705832f9fd1d8a34f2944e2a3cd68788c81)) +* **internal:** update pyright exclude list ([6906d75](https://github.com/replicate/replicate-python-stainless/commit/6906d752450d3081f63ebd14db74a52b4c7eaf37)) + ## 2.0.0-alpha.20 (2025-08-25) Full Changelog: [v2.0.0-alpha.19...v2.0.0-alpha.20](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) diff --git a/pyproject.toml b/pyproject.toml index 914c36a..a19c570 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate" -version = "2.0.0-alpha.20" +version = "2.0.0-alpha.21" description = "The official Python library for the replicate API" dynamic = ["readme"] license = "Apache-2.0" @@ -149,6 +149,7 @@ exclude = [ "_dev", ".venv", ".nox", + ".git", ] reportImplicitOverride = true diff --git a/src/replicate/_models.py b/src/replicate/_models.py index b8387ce..92f7c10 100644 --- a/src/replicate/_models.py +++ b/src/replicate/_models.py @@ -304,7 +304,7 @@ def model_dump( exclude_none=exclude_none, ) - return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped + return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped @override def model_dump_json( diff --git a/src/replicate/_version.py b/src/replicate/_version.py index c02adf7..06fdf6e 100644 --- a/src/replicate/_version.py +++ b/src/replicate/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "replicate" -__version__ = "2.0.0-alpha.20" # x-release-please-version +__version__ = "2.0.0-alpha.21" # x-release-please-version