|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List, Optional |
| 5 | +from typing import Optional |
6 | 6 | from typing_extensions import Literal |
7 | 7 |
|
8 | 8 | import httpx |
9 | 9 |
|
10 | | -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 10 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
11 | 11 | from ..._utils import maybe_transform, async_maybe_transform |
12 | 12 | from .task_run import ( |
13 | 13 | TaskRunResource, |
@@ -76,7 +76,7 @@ def search( |
76 | 76 | max_results: Optional[int] | NotGiven = NOT_GIVEN, |
77 | 77 | objective: Optional[str] | NotGiven = NOT_GIVEN, |
78 | 78 | processor: Literal["base", "pro"] | NotGiven = NOT_GIVEN, |
79 | | - search_queries: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 79 | + search_queries: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
80 | 80 | source_policy: Optional[SourcePolicy] | NotGiven = NOT_GIVEN, |
81 | 81 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
82 | 82 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -172,7 +172,7 @@ async def search( |
172 | 172 | max_results: Optional[int] | NotGiven = NOT_GIVEN, |
173 | 173 | objective: Optional[str] | NotGiven = NOT_GIVEN, |
174 | 174 | processor: Literal["base", "pro"] | NotGiven = NOT_GIVEN, |
175 | | - search_queries: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 175 | + search_queries: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
176 | 176 | source_policy: Optional[SourcePolicy] | NotGiven = NOT_GIVEN, |
177 | 177 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
178 | 178 | # The extra values given here take precedence over values defined on the client or passed to this method. |
|
0 commit comments