Skip to content

Commit d25bc11

Browse files
chore(api): update composite API spec
1 parent 05f6cfe commit d25bc11

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2224
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 5f7d8a96b953cef8677dacffc249761d
3+
openapi_spec_hash: 9a73d6e19fbf993950d4705e65c8e5f6
44
config_hash: f6fa3a155508fae2904b264233641e02

src/cloudflare/types/radar/quality/iqi_timeseries_groups_response.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import TYPE_CHECKING, Dict, List
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -129,13 +129,19 @@ class Meta(BaseModel):
129129

130130

131131
class Serie0(BaseModel):
132-
p25: List[str]
133-
134-
p50: List[str]
135-
136-
p75: List[str]
137-
138-
timestamps: List[str]
132+
timestamps: List[datetime]
133+
134+
if TYPE_CHECKING:
135+
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
136+
# value to this field, so for compatibility we avoid doing it at runtime.
137+
__pydantic_extra__: Dict[str, List[str]] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
138+
139+
# Stub to indicate that arbitrary properties are accepted.
140+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
141+
# `getattr(obj, '$type')`
142+
def __getattr__(self, attr: str) -> List[str]: ...
143+
else:
144+
__pydantic_extra__: Dict[str, List[str]]
139145

140146

141147
class IQITimeseriesGroupsResponse(BaseModel):

0 commit comments

Comments
 (0)