|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Dict, List, Optional |
| 5 | +from typing import Dict, Optional |
6 | 6 |
|
7 | 7 | import httpx |
8 | 8 |
|
|
22 | 22 | benchmark_definitions_params, |
23 | 23 | benchmark_list_public_params, |
24 | 24 | ) |
25 | | -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 25 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
26 | 26 | from ..._utils import maybe_transform, async_maybe_transform |
27 | 27 | from ..._compat import cached_property |
28 | 28 | from ..._resource import SyncAPIResource, AsyncAPIResource |
@@ -73,9 +73,9 @@ def create( |
73 | 73 | attribution: Optional[str] | NotGiven = NOT_GIVEN, |
74 | 74 | description: Optional[str] | NotGiven = NOT_GIVEN, |
75 | 75 | metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN, |
76 | | - required_environment_variables: Optional[List[str]] | NotGiven = NOT_GIVEN, |
77 | | - required_secret_names: List[str] | NotGiven = NOT_GIVEN, |
78 | | - scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 76 | + required_environment_variables: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 77 | + required_secret_names: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 78 | + scenario_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
79 | 79 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
80 | 80 | # The extra values given here take precedence over values defined on the client or passed to this method. |
81 | 81 | extra_headers: Headers | None = None, |
@@ -180,9 +180,9 @@ def update( |
180 | 180 | attribution: Optional[str] | NotGiven = NOT_GIVEN, |
181 | 181 | description: Optional[str] | NotGiven = NOT_GIVEN, |
182 | 182 | metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN, |
183 | | - required_environment_variables: Optional[List[str]] | NotGiven = NOT_GIVEN, |
184 | | - required_secret_names: List[str] | NotGiven = NOT_GIVEN, |
185 | | - scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 183 | + required_environment_variables: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 184 | + required_secret_names: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 185 | + scenario_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
186 | 186 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
187 | 187 | # The extra values given here take precedence over values defined on the client or passed to this method. |
188 | 188 | extra_headers: Headers | None = None, |
@@ -481,9 +481,9 @@ async def create( |
481 | 481 | attribution: Optional[str] | NotGiven = NOT_GIVEN, |
482 | 482 | description: Optional[str] | NotGiven = NOT_GIVEN, |
483 | 483 | metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN, |
484 | | - required_environment_variables: Optional[List[str]] | NotGiven = NOT_GIVEN, |
485 | | - required_secret_names: List[str] | NotGiven = NOT_GIVEN, |
486 | | - scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 484 | + required_environment_variables: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 485 | + required_secret_names: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 486 | + scenario_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
487 | 487 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
488 | 488 | # The extra values given here take precedence over values defined on the client or passed to this method. |
489 | 489 | extra_headers: Headers | None = None, |
@@ -588,9 +588,9 @@ async def update( |
588 | 588 | attribution: Optional[str] | NotGiven = NOT_GIVEN, |
589 | 589 | description: Optional[str] | NotGiven = NOT_GIVEN, |
590 | 590 | metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN, |
591 | | - required_environment_variables: Optional[List[str]] | NotGiven = NOT_GIVEN, |
592 | | - required_secret_names: List[str] | NotGiven = NOT_GIVEN, |
593 | | - scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 591 | + required_environment_variables: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 592 | + required_secret_names: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
| 593 | + scenario_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
594 | 594 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
595 | 595 | # The extra values given here take precedence over values defined on the client or passed to this method. |
596 | 596 | extra_headers: Headers | None = None, |
|
0 commit comments