runwayml 3.10.3__py3-none-any.whl → 3.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runwayml/_utils/_transform.py +6 -0
- runwayml/_version.py +1 -1
- {runwayml-3.10.3.dist-info → runwayml-3.11.0.dist-info}/METADATA +1 -1
- {runwayml-3.10.3.dist-info → runwayml-3.11.0.dist-info}/RECORD +6 -6
- {runwayml-3.10.3.dist-info → runwayml-3.11.0.dist-info}/WHEEL +0 -0
- {runwayml-3.10.3.dist-info → runwayml-3.11.0.dist-info}/licenses/LICENSE +0 -0
runwayml/_utils/_transform.py
CHANGED
@@ -16,6 +16,7 @@ from ._utils import (
|
|
16
16
|
lru_cache,
|
17
17
|
is_mapping,
|
18
18
|
is_iterable,
|
19
|
+
is_sequence,
|
19
20
|
)
|
20
21
|
from .._files import is_base64_file_input
|
21
22
|
from ._typing import (
|
@@ -24,6 +25,7 @@ from ._typing import (
|
|
24
25
|
extract_type_arg,
|
25
26
|
is_iterable_type,
|
26
27
|
is_required_type,
|
28
|
+
is_sequence_type,
|
27
29
|
is_annotated_type,
|
28
30
|
strip_annotated_type,
|
29
31
|
)
|
@@ -184,6 +186,8 @@ def _transform_recursive(
|
|
184
186
|
(is_list_type(stripped_type) and is_list(data))
|
185
187
|
# Iterable[T]
|
186
188
|
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))
|
187
191
|
):
|
188
192
|
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
189
193
|
# intended as an iterable, so we don't transform it.
|
@@ -346,6 +350,8 @@ async def _async_transform_recursive(
|
|
346
350
|
(is_list_type(stripped_type) and is_list(data))
|
347
351
|
# Iterable[T]
|
348
352
|
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))
|
349
355
|
):
|
350
356
|
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
351
357
|
# intended as an iterable, so we don't transform it.
|
runwayml/_version.py
CHANGED
@@ -11,7 +11,7 @@ runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
|
|
11
11
|
runwayml/_response.py,sha256=WxjSEXX-j01ZhlSxYyMCVSEKxo20pgy40RA7iyski8M,28800
|
12
12
|
runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
|
13
13
|
runwayml/_types.py,sha256=x9kxQosdf8uFYdVp9BA2p97HMcdp9M4oky-BbC5t1TU,7298
|
14
|
-
runwayml/_version.py,sha256=
|
14
|
+
runwayml/_version.py,sha256=sjYHAyQDyCfnhoSn2VmmxO09NMriZNheZe1jJ7dOo80,161
|
15
15
|
runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
runwayml/_utils/__init__.py,sha256=QMTNChOzCs5KF_NTxyb5XpFyyfmHiQASrFovz3dHmK8,2104
|
17
17
|
runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
|
@@ -20,7 +20,7 @@ runwayml/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEM
|
|
20
20
|
runwayml/_utils/_resources_proxy.py,sha256=mWtL945pucAKizHQ2ipewCIL-HijKdldUm72C3QqOBs,599
|
21
21
|
runwayml/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
22
22
|
runwayml/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
23
|
-
runwayml/_utils/_transform.py,sha256=
|
23
|
+
runwayml/_utils/_transform.py,sha256=Owrq-VLQMnGwPwOYHRLnnRTZTaGn1DJYSD2YROB23CU,15894
|
24
24
|
runwayml/_utils/_typing.py,sha256=UAoN7JEd8A-T32Cju-dL5EyqWKO_ktG4VDQ3KOhzqG0,4787
|
25
25
|
runwayml/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
26
26
|
runwayml/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
@@ -48,7 +48,7 @@ runwayml/types/video_to_video_create_params.py,sha256=0qfsIDlcTpqn9eiY-7X0J1NuDQ
|
|
48
48
|
runwayml/types/video_to_video_create_response.py,sha256=CXgAUmnPIZOxCW_macIBPOC8MZYQpq9a5_jteSkeBt8,264
|
49
49
|
runwayml/types/video_upscale_create_params.py,sha256=Ta3BNQy9aeTUBU5Ui-CMJtF32HeNRqbNpqjAAOKXyks,743
|
50
50
|
runwayml/types/video_upscale_create_response.py,sha256=zf-79HbJa68dUHltBiZjVtnW_U6HUI-htmkTm5URBSU,264
|
51
|
-
runwayml-3.
|
52
|
-
runwayml-3.
|
53
|
-
runwayml-3.
|
54
|
-
runwayml-3.
|
51
|
+
runwayml-3.11.0.dist-info/METADATA,sha256=cdO3oE1uJVHC9HyKULZO5LEKp7bCv3NnyW3DUQogwYU,15158
|
52
|
+
runwayml-3.11.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
53
|
+
runwayml-3.11.0.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
54
|
+
runwayml-3.11.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|