runwayml 2.1.9__py3-none-any.whl → 2.1.10__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/_response.py +2 -2
- runwayml/_version.py +1 -1
- {runwayml-2.1.9.dist-info → runwayml-2.1.10.dist-info}/METADATA +1 -1
- {runwayml-2.1.9.dist-info → runwayml-2.1.10.dist-info}/RECORD +6 -6
- {runwayml-2.1.9.dist-info → runwayml-2.1.10.dist-info}/WHEEL +0 -0
- {runwayml-2.1.9.dist-info → runwayml-2.1.10.dist-info}/licenses/LICENSE +0 -0
runwayml/_response.py
CHANGED
@@ -136,6 +136,8 @@ class BaseAPIResponse(Generic[R]):
|
|
136
136
|
if cast_to and is_annotated_type(cast_to):
|
137
137
|
cast_to = extract_type_arg(cast_to, 0)
|
138
138
|
|
139
|
+
origin = get_origin(cast_to) or cast_to
|
140
|
+
|
139
141
|
if self._is_sse_stream:
|
140
142
|
if to:
|
141
143
|
if not is_stream_class_type(to):
|
@@ -195,8 +197,6 @@ class BaseAPIResponse(Generic[R]):
|
|
195
197
|
if cast_to == bool:
|
196
198
|
return cast(R, response.text.lower() == "true")
|
197
199
|
|
198
|
-
origin = get_origin(cast_to) or cast_to
|
199
|
-
|
200
200
|
if origin == APIResponse:
|
201
201
|
raise RuntimeError("Unexpected state - cast_to is `APIResponse`")
|
202
202
|
|
runwayml/_version.py
CHANGED
@@ -8,10 +8,10 @@ runwayml/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
8
8
|
runwayml/_models.py,sha256=B6f-C-F-PbDp3jRKCLksaAS9osC2g1xs7DpoZV1dlUE,28659
|
9
9
|
runwayml/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
10
10
|
runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
|
11
|
-
runwayml/_response.py,sha256=
|
11
|
+
runwayml/_response.py,sha256=3Tf7pmDYDMv5BJuF0ljEBtMMk5Q9T7jcWn7I6P-hbdM,28801
|
12
12
|
runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
|
13
13
|
runwayml/_types.py,sha256=oHct1QQY_lI8bepCgfWDZm2N5VNi0e6o1iLeiTh4Y_0,6145
|
14
|
-
runwayml/_version.py,sha256=
|
14
|
+
runwayml/_version.py,sha256=FIvwQ-GBd4n4bgMWpHXjig2ZsUm8feWYTdF3vkdYR8Q,161
|
15
15
|
runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
runwayml/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
|
@@ -30,7 +30,7 @@ runwayml/types/__init__.py,sha256=R3cLEXzpcEpEOuxaFBo3R72ewH1LtjpkZ0aYOIt1CAo,40
|
|
30
30
|
runwayml/types/image_to_video_create_params.py,sha256=98DsjOHnmHEi8mVjZOQEDL3P1hJUT8uktp0mDA5WJ5Y,1869
|
31
31
|
runwayml/types/image_to_video_create_response.py,sha256=l5GszzUSItV-ZYHCB8hH_GSVibUZEkzfRLrAhXkd8O4,346
|
32
32
|
runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
|
33
|
-
runwayml-2.1.
|
34
|
-
runwayml-2.1.
|
35
|
-
runwayml-2.1.
|
36
|
-
runwayml-2.1.
|
33
|
+
runwayml-2.1.10.dist-info/METADATA,sha256=Gwbr_GXbq4UdcUwux_3cUQnh9Sky9-N0W9cxHPkAP9E,13560
|
34
|
+
runwayml-2.1.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
35
|
+
runwayml-2.1.10.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
36
|
+
runwayml-2.1.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|