Skip to content

Commit fac9404

Browse files
committed
fix(radar): move type: ignore[call-arg] to call site for mypy
mypy attributes the files= kwarg error to the _get_api_list() call expression, not the argument line. Move the suppression comment to where mypy expects it while keeping pyright's ignore on the arg line.
1 parent 342b5a8 commit fac9404

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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(
91+
return self._get_api_list( # type: ignore[call-arg]
9292
path_template("/accounts/{account_id}/ai/tomarkdown", account_id=account_id),
9393
page=SyncSinglePage[ToMarkdownCreateResponse],
9494
body=maybe_transform(body, to_markdown_create_params.ToMarkdownCreateParams),
95-
files=extracted_files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
95+
files=extracted_files, # pyright: ignore[reportCallIssue]
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(
159+
return self._get_api_list( # type: ignore[call-arg]
160160
path_template("/accounts/{account_id}/ai/tomarkdown", account_id=account_id),
161161
page=AsyncSinglePage[ToMarkdownCreateResponse],
162162
body=maybe_transform(body, to_markdown_create_params.ToMarkdownCreateParams),
163-
files=extracted_files, # pyright: ignore[reportCallIssue] # type: ignore[call-arg]
163+
files=extracted_files, # pyright: ignore[reportCallIssue]
164164
options=make_request_options(
165165
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
166166
),

0 commit comments

Comments
 (0)