Skip to content

Commit c98ed80

Browse files
chore(internal): codegen related update (#56)
1 parent 75daba1 commit c98ed80

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/runwayml/_client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import httpx
1010

11-
from . import resources, _exceptions
11+
from . import _exceptions
1212
from ._qs import Querystring
1313
from ._types import (
1414
NOT_GIVEN,
@@ -24,6 +24,7 @@
2424
get_async_library,
2525
)
2626
from ._version import __version__
27+
from .resources import tasks, image_to_video
2728
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2829
from ._exceptions import RunwayMLError, APIStatusError
2930
from ._base_client import (
@@ -37,7 +38,6 @@
3738
"Transport",
3839
"ProxiesTypes",
3940
"RequestOptions",
40-
"resources",
4141
"RunwayML",
4242
"AsyncRunwayML",
4343
"Client",
@@ -46,8 +46,8 @@
4646

4747

4848
class RunwayML(SyncAPIClient):
49-
tasks: resources.TasksResource
50-
image_to_video: resources.ImageToVideoResource
49+
tasks: tasks.TasksResource
50+
image_to_video: image_to_video.ImageToVideoResource
5151
with_raw_response: RunwayMLWithRawResponse
5252
with_streaming_response: RunwayMLWithStreamedResponse
5353

@@ -111,8 +111,8 @@ def __init__(
111111
_strict_response_validation=_strict_response_validation,
112112
)
113113

114-
self.tasks = resources.TasksResource(self)
115-
self.image_to_video = resources.ImageToVideoResource(self)
114+
self.tasks = tasks.TasksResource(self)
115+
self.image_to_video = image_to_video.ImageToVideoResource(self)
116116
self.with_raw_response = RunwayMLWithRawResponse(self)
117117
self.with_streaming_response = RunwayMLWithStreamedResponse(self)
118118

@@ -225,8 +225,8 @@ def _make_status_error(
225225

226226

227227
class AsyncRunwayML(AsyncAPIClient):
228-
tasks: resources.AsyncTasksResource
229-
image_to_video: resources.AsyncImageToVideoResource
228+
tasks: tasks.AsyncTasksResource
229+
image_to_video: image_to_video.AsyncImageToVideoResource
230230
with_raw_response: AsyncRunwayMLWithRawResponse
231231
with_streaming_response: AsyncRunwayMLWithStreamedResponse
232232

@@ -290,8 +290,8 @@ def __init__(
290290
_strict_response_validation=_strict_response_validation,
291291
)
292292

293-
self.tasks = resources.AsyncTasksResource(self)
294-
self.image_to_video = resources.AsyncImageToVideoResource(self)
293+
self.tasks = tasks.AsyncTasksResource(self)
294+
self.image_to_video = image_to_video.AsyncImageToVideoResource(self)
295295
self.with_raw_response = AsyncRunwayMLWithRawResponse(self)
296296
self.with_streaming_response = AsyncRunwayMLWithStreamedResponse(self)
297297

@@ -405,26 +405,26 @@ def _make_status_error(
405405

406406
class RunwayMLWithRawResponse:
407407
def __init__(self, client: RunwayML) -> None:
408-
self.tasks = resources.TasksResourceWithRawResponse(client.tasks)
409-
self.image_to_video = resources.ImageToVideoResourceWithRawResponse(client.image_to_video)
408+
self.tasks = tasks.TasksResourceWithRawResponse(client.tasks)
409+
self.image_to_video = image_to_video.ImageToVideoResourceWithRawResponse(client.image_to_video)
410410

411411

412412
class AsyncRunwayMLWithRawResponse:
413413
def __init__(self, client: AsyncRunwayML) -> None:
414-
self.tasks = resources.AsyncTasksResourceWithRawResponse(client.tasks)
415-
self.image_to_video = resources.AsyncImageToVideoResourceWithRawResponse(client.image_to_video)
414+
self.tasks = tasks.AsyncTasksResourceWithRawResponse(client.tasks)
415+
self.image_to_video = image_to_video.AsyncImageToVideoResourceWithRawResponse(client.image_to_video)
416416

417417

418418
class RunwayMLWithStreamedResponse:
419419
def __init__(self, client: RunwayML) -> None:
420-
self.tasks = resources.TasksResourceWithStreamingResponse(client.tasks)
421-
self.image_to_video = resources.ImageToVideoResourceWithStreamingResponse(client.image_to_video)
420+
self.tasks = tasks.TasksResourceWithStreamingResponse(client.tasks)
421+
self.image_to_video = image_to_video.ImageToVideoResourceWithStreamingResponse(client.image_to_video)
422422

423423

424424
class AsyncRunwayMLWithStreamedResponse:
425425
def __init__(self, client: AsyncRunwayML) -> None:
426-
self.tasks = resources.AsyncTasksResourceWithStreamingResponse(client.tasks)
427-
self.image_to_video = resources.AsyncImageToVideoResourceWithStreamingResponse(client.image_to_video)
426+
self.tasks = tasks.AsyncTasksResourceWithStreamingResponse(client.tasks)
427+
self.image_to_video = image_to_video.AsyncImageToVideoResourceWithStreamingResponse(client.image_to_video)
428428

429429

430430
Client = RunwayML

0 commit comments

Comments
 (0)