File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 3939 Transport ,
4040 ProxiesTypes ,
4141 RequestOptions ,
42+ SequenceNotStr ,
4243)
4344from ._utils import (
4445 is_given ,
@@ -775,7 +776,7 @@ def list_assignments(
775776 def list_connections (
776777 self ,
777778 * ,
778- connection_ids : List [str ] | NotGiven = NOT_GIVEN ,
779+ connection_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
779780 connector_config_id : str | NotGiven = NOT_GIVEN ,
780781 connector_names : List [
781782 Literal [
@@ -2736,7 +2737,7 @@ async def list_assignments(
27362737 def list_connections (
27372738 self ,
27382739 * ,
2739- connection_ids : List [str ] | NotGiven = NOT_GIVEN ,
2740+ connection_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
27402741 connector_config_id : str | NotGiven = NOT_GIVEN ,
27412742 connector_names : List [
27422743 Literal [
Original file line number Diff line number Diff line change 1616 lru_cache ,
1717 is_mapping ,
1818 is_iterable ,
19+ is_sequence ,
1920)
2021from .._files import is_base64_file_input
2122from ._typing import (
2425 extract_type_arg ,
2526 is_iterable_type ,
2627 is_required_type ,
28+ is_sequence_type ,
2729 is_annotated_type ,
2830 strip_annotated_type ,
2931)
@@ -184,6 +186,8 @@ def _transform_recursive(
184186 (is_list_type (stripped_type ) and is_list (data ))
185187 # Iterable[T]
186188 or (is_iterable_type (stripped_type ) and is_iterable (data ) and not isinstance (data , str ))
189+ # Sequence[T]
190+ or (is_sequence_type (stripped_type ) and is_sequence (data ) and not isinstance (data , str ))
187191 ):
188192 # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
189193 # intended as an iterable, so we don't transform it.
@@ -346,6 +350,8 @@ async def _async_transform_recursive(
346350 (is_list_type (stripped_type ) and is_list (data ))
347351 # Iterable[T]
348352 or (is_iterable_type (stripped_type ) and is_iterable (data ) and not isinstance (data , str ))
353+ # Sequence[T]
354+ or (is_sequence_type (stripped_type ) and is_sequence (data ) and not isinstance (data , str ))
349355 ):
350356 # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
351357 # intended as an iterable, so we don't transform it.
Original file line number Diff line number Diff line change 55from typing import List
66from typing_extensions import Literal , TypedDict
77
8+ from .._types import SequenceNotStr
9+
810__all__ = ["ClientListConnectionsParams" ]
911
1012
1113class ClientListConnectionsParams (TypedDict , total = False ):
12- connection_ids : List [str ]
14+ connection_ids : SequenceNotStr [str ]
1315
1416 connector_config_id : str
1517 """The id of the connector config, starts with `ccfg_`"""
You can’t perform that action at this time.
0 commit comments