|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Dict, List, Union, Optional |
| 5 | +from typing import Dict, Union, Optional |
6 | 6 | from typing_extensions import Literal
|
7 | 7 |
|
8 | 8 | import httpx
|
|
15 | 15 | document_get_info_list_params,
|
16 | 16 | document_get_page_info_params,
|
17 | 17 | )
|
18 |
| -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 18 | +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
19 | 19 | from .._utils import maybe_transform, async_maybe_transform
|
20 | 20 | from .._compat import cached_property
|
21 | 21 | from .._resource import SyncAPIResource, AsyncAPIResource
|
@@ -63,7 +63,7 @@ def update(
|
63 | 63 | collection_name: str,
|
64 | 64 | path: str,
|
65 | 65 | index_status: Optional[Literal["not_parsed", "not_indexed"]] | NotGiven = NOT_GIVEN,
|
66 |
| - metadata: Optional[Dict[str, Union[str, List[str]]]] | NotGiven = NOT_GIVEN, |
| 66 | + metadata: Optional[Dict[str, Union[str, SequenceNotStr[str]]]] | NotGiven = NOT_GIVEN, |
67 | 67 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
68 | 68 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
69 | 69 | extra_headers: Headers | None = None,
|
@@ -182,7 +182,7 @@ def add(
|
182 | 182 | collection_name: str,
|
183 | 183 | content: document_add_params.Content,
|
184 | 184 | path: str,
|
185 |
| - metadata: Dict[str, Union[str, List[str]]] | NotGiven = NOT_GIVEN, |
| 185 | + metadata: Dict[str, Union[str, SequenceNotStr[str]]] | NotGiven = NOT_GIVEN, |
186 | 186 | overwrite: bool | NotGiven = NOT_GIVEN,
|
187 | 187 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
188 | 188 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
@@ -466,7 +466,7 @@ async def update(
|
466 | 466 | collection_name: str,
|
467 | 467 | path: str,
|
468 | 468 | index_status: Optional[Literal["not_parsed", "not_indexed"]] | NotGiven = NOT_GIVEN,
|
469 |
| - metadata: Optional[Dict[str, Union[str, List[str]]]] | NotGiven = NOT_GIVEN, |
| 469 | + metadata: Optional[Dict[str, Union[str, SequenceNotStr[str]]]] | NotGiven = NOT_GIVEN, |
470 | 470 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
471 | 471 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
472 | 472 | extra_headers: Headers | None = None,
|
@@ -585,7 +585,7 @@ async def add(
|
585 | 585 | collection_name: str,
|
586 | 586 | content: document_add_params.Content,
|
587 | 587 | path: str,
|
588 |
| - metadata: Dict[str, Union[str, List[str]]] | NotGiven = NOT_GIVEN, |
| 588 | + metadata: Dict[str, Union[str, SequenceNotStr[str]]] | NotGiven = NOT_GIVEN, |
589 | 589 | overwrite: bool | NotGiven = NOT_GIVEN,
|
590 | 590 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
591 | 591 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
|
0 commit comments