|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List |
6 | | - |
7 | 5 | import httpx |
8 | 6 |
|
9 | | -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 7 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
10 | 8 | from ..._utils import maybe_transform, async_maybe_transform |
11 | 9 | from ..._compat import cached_property |
12 | 10 | from ..._resource import SyncAPIResource, AsyncAPIResource |
@@ -49,7 +47,7 @@ def with_streaming_response(self) -> BulkResourceWithStreamingResponse: |
49 | 47 | def delete( |
50 | 48 | self, |
51 | 49 | *, |
52 | | - file_ids: List[str], |
| 50 | + file_ids: SequenceNotStr[str], |
53 | 51 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
54 | 52 | # The extra values given here take precedence over values defined on the client or passed to this method. |
55 | 53 | extra_headers: Headers | None = None, |
@@ -89,8 +87,8 @@ def delete( |
89 | 87 | def add_tags( |
90 | 88 | self, |
91 | 89 | *, |
92 | | - file_ids: List[str], |
93 | | - tags: List[str], |
| 90 | + file_ids: SequenceNotStr[str], |
| 91 | + tags: SequenceNotStr[str], |
94 | 92 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
95 | 93 | # The extra values given here take precedence over values defined on the client or passed to this method. |
96 | 94 | extra_headers: Headers | None = None, |
@@ -134,8 +132,8 @@ def add_tags( |
134 | 132 | def remove_ai_tags( |
135 | 133 | self, |
136 | 134 | *, |
137 | | - ai_tags: List[str], |
138 | | - file_ids: List[str], |
| 135 | + ai_tags: SequenceNotStr[str], |
| 136 | + file_ids: SequenceNotStr[str], |
139 | 137 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
140 | 138 | # The extra values given here take precedence over values defined on the client or passed to this method. |
141 | 139 | extra_headers: Headers | None = None, |
@@ -179,8 +177,8 @@ def remove_ai_tags( |
179 | 177 | def remove_tags( |
180 | 178 | self, |
181 | 179 | *, |
182 | | - file_ids: List[str], |
183 | | - tags: List[str], |
| 180 | + file_ids: SequenceNotStr[str], |
| 181 | + tags: SequenceNotStr[str], |
184 | 182 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
185 | 183 | # The extra values given here take precedence over values defined on the client or passed to this method. |
186 | 184 | extra_headers: Headers | None = None, |
@@ -245,7 +243,7 @@ def with_streaming_response(self) -> AsyncBulkResourceWithStreamingResponse: |
245 | 243 | async def delete( |
246 | 244 | self, |
247 | 245 | *, |
248 | | - file_ids: List[str], |
| 246 | + file_ids: SequenceNotStr[str], |
249 | 247 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
250 | 248 | # The extra values given here take precedence over values defined on the client or passed to this method. |
251 | 249 | extra_headers: Headers | None = None, |
@@ -285,8 +283,8 @@ async def delete( |
285 | 283 | async def add_tags( |
286 | 284 | self, |
287 | 285 | *, |
288 | | - file_ids: List[str], |
289 | | - tags: List[str], |
| 286 | + file_ids: SequenceNotStr[str], |
| 287 | + tags: SequenceNotStr[str], |
290 | 288 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
291 | 289 | # The extra values given here take precedence over values defined on the client or passed to this method. |
292 | 290 | extra_headers: Headers | None = None, |
@@ -330,8 +328,8 @@ async def add_tags( |
330 | 328 | async def remove_ai_tags( |
331 | 329 | self, |
332 | 330 | *, |
333 | | - ai_tags: List[str], |
334 | | - file_ids: List[str], |
| 331 | + ai_tags: SequenceNotStr[str], |
| 332 | + file_ids: SequenceNotStr[str], |
335 | 333 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
336 | 334 | # The extra values given here take precedence over values defined on the client or passed to this method. |
337 | 335 | extra_headers: Headers | None = None, |
@@ -375,8 +373,8 @@ async def remove_ai_tags( |
375 | 373 | async def remove_tags( |
376 | 374 | self, |
377 | 375 | *, |
378 | | - file_ids: List[str], |
379 | | - tags: List[str], |
| 376 | + file_ids: SequenceNotStr[str], |
| 377 | + tags: SequenceNotStr[str], |
380 | 378 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
381 | 379 | # The extra values given here take precedence over values defined on the client or passed to this method. |
382 | 380 | extra_headers: Headers | None = None, |
|
0 commit comments