Skip to content

Commit f280942

Browse files
committed
chore: fix more inconsequential lint errors
1 parent bf1eac9 commit f280942

6 files changed

Lines changed: 16 additions & 14 deletions

File tree

src/cloudflare/resources/ai/to_markdown.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def transform(
111111
# sent to the server will contain a `boundary` parameter, e.g.
112112
# multipart/form-data; boundary=---abc--
113113
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
114-
return self._get_api_list( # pyright: ignore[reportUnknownVariableType, reportCallIssue]
114+
return self._get_api_list( # type: ignore[call-arg] # pyright: ignore[reportUnknownVariableType, reportCallIssue]
115115
f"/accounts/{account_id}/ai/tomarkdown",
116116
page=SyncSinglePage[ToMarkdownTransformResponse],
117117
body=maybe_transform(body, to_markdown_transform_params.ToMarkdownTransformParams),
118-
files=files, # pyright: ignore[reportCallIssue]
118+
files=files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
119119
options=make_request_options(
120120
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
121121
),
@@ -210,11 +210,11 @@ def transform(
210210
# sent to the server will contain a `boundary` parameter, e.g.
211211
# multipart/form-data; boundary=---abc--
212212
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
213-
return self._get_api_list( # pyright: ignore[reportUnknownVariableType, reportCallIssue]
213+
return self._get_api_list( # type: ignore[call-arg] # pyright: ignore[reportUnknownVariableType, reportCallIssue]
214214
f"/accounts/{account_id}/ai/tomarkdown",
215215
page=AsyncSinglePage[ToMarkdownTransformResponse],
216216
body=maybe_transform(body, to_markdown_transform_params.ToMarkdownTransformParams),
217-
files=files, # pyright: ignore[reportCallIssue]
217+
files=files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
218218
options=make_request_options(
219219
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
220220
),

src/cloudflare/resources/organizations/organization_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ..._wrappers import ResultWrapper
2020
from ..._base_client import make_request_options
2121
from ...types.organizations import organization_profile_update_params
22-
from ...types.organizations.organization_profile_get_params import ( # pyright: ignore[reportMissingImports]
22+
from ...types.organizations.organization_profile_get_params import ( # type: ignore[import-not-found] # pyright: ignore[reportMissingImports]
2323
Result, # pyright: ignore[reportUnknownVariableType]
2424
)
2525

src/cloudflare/resources/radar/ai/to_markdown.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def create(
8888
# sent to the server will contain a `boundary` parameter, e.g.
8989
# multipart/form-data; boundary=---abc--
9090
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
91-
return self._get_api_list( # pyright: ignore[reportUnknownVariableType, reportCallIssue]
91+
return self._get_api_list( # type: ignore[call-arg] # pyright: ignore[reportUnknownVariableType, reportCallIssue]
9292
f"/accounts/{account_id}/ai/tomarkdown",
9393
page=SyncSinglePage[ToMarkdownCreateResponse],
9494
body=maybe_transform(body, to_markdown_create_params.ToMarkdownCreateParams),
95-
files=extracted_files, # pyright: ignore[reportCallIssue]
95+
files=extracted_files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
9696
options=make_request_options(
9797
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
9898
),
@@ -156,11 +156,11 @@ def create(
156156
# sent to the server will contain a `boundary` parameter, e.g.
157157
# multipart/form-data; boundary=---abc--
158158
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
159-
return self._get_api_list( # pyright: ignore[reportUnknownVariableType, reportCallIssue]
159+
return self._get_api_list( # type: ignore[call-arg] # pyright: ignore[reportUnknownVariableType, reportCallIssue]
160160
f"/accounts/{account_id}/ai/tomarkdown",
161161
page=AsyncSinglePage[ToMarkdownCreateResponse],
162162
body=maybe_transform(body, to_markdown_create_params.ToMarkdownCreateParams),
163-
files=extracted_files, # pyright: ignore[reportCallIssue]
163+
files=extracted_files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
164164
options=make_request_options(
165165
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
166166
),

src/cloudflare/types/pipelines/sink_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ class SchemaFieldJson(TypedDict, total=False):
290290
sql_name: str
291291

292292

293-
class SchemaFieldStruct(total=False): # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
293+
class SchemaFieldStruct(total=False): # type: ignore[call-arg] # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
294294
pass
295295

296296

297-
class SchemaFieldList(total=False): # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
297+
class SchemaFieldList(total=False): # type: ignore[call-arg] # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
298298
pass
299299

300300

src/cloudflare/types/pipelines/stream_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ class SchemaFieldJson(TypedDict, total=False):
198198
sql_name: str
199199

200200

201-
class SchemaFieldStruct(total=False): # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
201+
class SchemaFieldStruct(total=False): # type: ignore[call-arg] # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
202202
pass
203203

204204

205-
class SchemaFieldList(total=False): # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
205+
class SchemaFieldList(total=False): # type: ignore[call-arg] # pyright: ignore[reportGeneralTypeIssues, reportCallIssue]
206206
pass
207207

208208

src/cloudflare/types/zero_trust/dlp/profile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from datetime import datetime
77
from typing_extensions import Literal, TypeAlias
88

9-
from ...._compat import PYDANTIC_V2 # pyright: ignore[reportAttributeAccessIssue, reportUnknownVariableType]
9+
from ...._compat import ( # type: ignore[attr-defined]
10+
PYDANTIC_V2, # pyright: ignore[reportAttributeAccessIssue, reportUnknownVariableType]
11+
)
1012
from ...._models import BaseModel
1113

1214
__all__ = [

0 commit comments

Comments
 (0)