Skip to content

Commit 2d5a6ea

Browse files
release: 3.0.0-beta.3 (#146)
* feat(api): OpenAPI spec update via Stainless API (#145) * feat(api): OpenAPI spec update via Stainless API (#147) * feat(api): OpenAPI spec update via Stainless API (#148) * feat(api): OpenAPI spec update via Stainless API (#149) * feat(api): OpenAPI spec update via Stainless API (#150) * feat(api): update via SDK Studio (#151) * feat(api): update via SDK Studio (#152) * release: 3.0.0-beta.3 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 7405055 commit 2d5a6ea

File tree

3,348 files changed

+5099
-5050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,348 files changed

+5099
-5050
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-beta.2"
2+
".": "3.0.0-beta.3"
33
}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

api.md

Lines changed: 53 additions & 53 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cloudflare"
3-
version = "3.0.0-beta.2"
3+
version = "3.0.0-beta.3"
44
description = "The official Python library for the cloudflare API"
55
readme = "README.md"
66
license = "Apache-2.0"

src/cloudflare/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# File generated from our OpenAPI spec by Stainless.
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from . import types
44
from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes

src/cloudflare/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# File generated from our OpenAPI spec by Stainless.
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from __future__ import annotations
44

src/cloudflare/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# File generated from our OpenAPI spec by Stainless.
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import httpx
44

src/cloudflare/_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# File generated from our OpenAPI spec by Stainless.
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from __future__ import annotations
44

src/cloudflare/_models.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import inspect
44
from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, cast
55
from datetime import date, datetime
6+
from functools import lru_cache
67
from typing_extensions import (
78
Unpack,
89
Literal,
@@ -533,7 +534,12 @@ class GenericModel(BaseGenericModel, BaseModel):
533534

534535

535536
if PYDANTIC_V2:
536-
from pydantic import TypeAdapter
537+
if TYPE_CHECKING:
538+
from pydantic import TypeAdapter
539+
else:
540+
from pydantic import TypeAdapter as _TypeAdapter
541+
542+
TypeAdapter = lru_cache(_TypeAdapter)
537543

538544
def _validate_non_model_type(*, type_: type[_T], value: object) -> _T:
539545
return TypeAdapter(type_).validate_python(value)

0 commit comments

Comments
 (0)