From 31791042c52e825d1763123b14f44b9e68cc3466 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:23:48 +0000 Subject: [PATCH 1/2] chore(internal): update type hint for helper function (#241) --- src/anthropic/_utils/_transform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/anthropic/_utils/_transform.py b/src/anthropic/_utils/_transform.py index d953505f..769f7362 100644 --- a/src/anthropic/_utils/_transform.py +++ b/src/anthropic/_utils/_transform.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Any, List, Mapping, TypeVar, cast +from typing import Any, Mapping, TypeVar, cast from datetime import date, datetime from typing_extensions import Literal, get_args, override, get_type_hints @@ -60,7 +60,7 @@ def __repr__(self) -> str: def maybe_transform( - data: Mapping[str, object] | List[Any] | None, + data: object, expected_type: object, ) -> Any | None: """Wrapper over `transform()` that allows `None` to be passed. From 18b68ebaa726475ee022c82aa43fe7acd4a90edc Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:24:10 +0000 Subject: [PATCH 2/2] release: 0.7.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/anthropic/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1bc57136..7412044d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.7.1" + ".": "0.7.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b2bfb15..44234b36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.7.2 (2023-11-17) + +Full Changelog: [v0.7.1...v0.7.2](https://github.com/anthropics/anthropic-sdk-python/compare/v0.7.1...v0.7.2) + +### Chores + +* **internal:** update type hint for helper function ([#241](https://github.com/anthropics/anthropic-sdk-python/issues/241)) ([3179104](https://github.com/anthropics/anthropic-sdk-python/commit/31791042c52e825d1763123b14f44b9e68cc3466)) + ## 0.7.1 (2023-11-16) Full Changelog: [v0.7.0...v0.7.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.7.0...v0.7.1) diff --git a/pyproject.toml b/pyproject.toml index a9dd7b2f..b681c237 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "anthropic" -version = "0.7.1" +version = "0.7.2" description = "The official Python library for the anthropic API" readme = "README.md" license = "MIT" diff --git a/src/anthropic/_version.py b/src/anthropic/_version.py index 24e5104e..f6425460 100644 --- a/src/anthropic/_version.py +++ b/src/anthropic/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. __title__ = "anthropic" -__version__ = "0.7.1" # x-release-please-version +__version__ = "0.7.2" # x-release-please-version