From 59855b24b7d46a087d15bb9dfabce2ae3dfb1300 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Fri, 24 May 2024 15:37:45 +0100 Subject: [PATCH 1/3] chore(internal): fix lint issue --- src/openai/lib/azure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openai/lib/azure.py b/src/openai/lib/azure.py index b76b83c61c..165b9b82e2 100644 --- a/src/openai/lib/azure.py +++ b/src/openai/lib/azure.py @@ -2,7 +2,7 @@ import os import inspect -from typing import Any, Union, Mapping, TypeVar, Callable, Awaitable, overload +from typing import Any, Union, Mapping, TypeVar, Callable, Awaitable, cast, overload from typing_extensions import Self, override import httpx @@ -515,7 +515,7 @@ async def _get_azure_ad_token(self) -> str | None: token = provider() if inspect.isawaitable(token): token = await token - if not token or not isinstance(token, str): + if not token or not isinstance(cast(Any, token), str): raise ValueError( f"Expected `azure_ad_token_provider` argument to return a string but it returned {token}", ) From 379c6a36af4d2afb3df1fa18d112c654226af5b2 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 28 May 2024 09:22:38 +0000 Subject: [PATCH 2/3] chore: add missing __all__ definitions --- src/openai/lib/azure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openai/lib/azure.py b/src/openai/lib/azure.py index 165b9b82e2..b76b83c61c 100644 --- a/src/openai/lib/azure.py +++ b/src/openai/lib/azure.py @@ -2,7 +2,7 @@ import os import inspect -from typing import Any, Union, Mapping, TypeVar, Callable, Awaitable, cast, overload +from typing import Any, Union, Mapping, TypeVar, Callable, Awaitable, overload from typing_extensions import Self, override import httpx @@ -515,7 +515,7 @@ async def _get_azure_ad_token(self) -> str | None: token = provider() if inspect.isawaitable(token): token = await token - if not token or not isinstance(cast(Any, token), str): + if not token or not isinstance(token, str): raise ValueError( f"Expected `azure_ad_token_provider` argument to return a string but it returned {token}", ) From bb0b38d9882745d51a32dc3fcc0d6a54cdd298cb Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 28 May 2024 05:23:07 -0400 Subject: [PATCH 3/3] release: 1.30.4 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/openai/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6c6045ba02..5d67d3563d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.30.3" + ".": "1.30.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7276bd8c03..b72dd9335d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.30.4 (2024-05-28) + +Full Changelog: [v1.30.3...v1.30.4](https://github.com/openai/openai-python/compare/v1.30.3...v1.30.4) + +### Chores + +* add missing __all__ definitions ([7fba60f](https://github.com/openai/openai-python/commit/7fba60f2e8adc26e83080aaf3e436eb9891e1253)) +* **internal:** fix lint issue ([f423cd0](https://github.com/openai/openai-python/commit/f423cd05d33b3e734eda7c0c008faac14ae96bb7)) + ## 1.30.3 (2024-05-24) Full Changelog: [v1.30.2...v1.30.3](https://github.com/openai/openai-python/compare/v1.30.2...v1.30.3) diff --git a/pyproject.toml b/pyproject.toml index 850cf8419b..3b6888a64d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.30.3" +version = "1.30.4" description = "The official Python library for the openai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openai/_version.py b/src/openai/_version.py index 541680fae0..de2bb78a79 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openai" -__version__ = "1.30.3" # x-release-please-version +__version__ = "1.30.4" # x-release-please-version