From 511d81aa5acfcdf9c66148899531d774560f63b1 Mon Sep 17 00:00:00 2001 From: Siddarth Chalasani Date: Mon, 24 Nov 2025 19:54:17 -0800 Subject: [PATCH] import resources from appropriate (outermost) package --- src/runloop_api_client/sdk/_types.py | 4 +--- src/runloop_api_client/sdk/async_devbox.py | 2 +- src/runloop_api_client/sdk/async_execution_result.py | 2 +- src/runloop_api_client/sdk/async_snapshot.py | 2 +- src/runloop_api_client/sdk/devbox.py | 2 +- src/runloop_api_client/sdk/execution_result.py | 2 +- src/runloop_api_client/sdk/snapshot.py | 2 +- tests/sdk/async_devbox/test_streaming.py | 2 +- tests/sdk/devbox/test_streaming.py | 2 +- 9 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/runloop_api_client/sdk/_types.py b/src/runloop_api_client/sdk/_types.py index 1a566e7f5..3bd3fc3cd 100644 --- a/src/runloop_api_client/sdk/_types.py +++ b/src/runloop_api_client/sdk/_types.py @@ -1,10 +1,9 @@ from typing import Union, Callable, Optional from typing_extensions import TypedDict -from runloop_api_client.types.devboxes import DiskSnapshotUpdateParams - from .._types import Body, Query, Headers, Timeout, NotGiven from ..lib.polling import PollingConfig +from ..types.devboxes import DiskSnapshotListParams, DiskSnapshotUpdateParams from ..types.devbox_list_params import DevboxListParams from ..types.object_list_params import ObjectListParams from ..types.devbox_create_params import DevboxCreateParams, DevboxBaseCreateParams @@ -20,7 +19,6 @@ from ..types.devbox_snapshot_disk_params import DevboxSnapshotDiskParams from ..types.devbox_read_file_contents_params import DevboxReadFileContentsParams from ..types.devbox_write_file_contents_params import DevboxWriteFileContentsParams -from ..types.devboxes.disk_snapshot_list_params import DiskSnapshotListParams LogCallback = Callable[[str], None] diff --git a/src/runloop_api_client/sdk/async_devbox.py b/src/runloop_api_client/sdk/async_devbox.py index 1a049b170..2dfac41f2 100644 --- a/src/runloop_api_client/sdk/async_devbox.py +++ b/src/runloop_api_client/sdk/async_devbox.py @@ -34,10 +34,10 @@ from ._helpers import filter_params from .._streaming import AsyncStream from ..lib.polling import PollingConfig +from ..types.devboxes import ExecutionUpdateChunk from .async_execution import AsyncExecution, _AsyncStreamingGroup from .async_execution_result import AsyncExecutionResult from ..types.devbox_execute_async_params import DevboxExecuteAsyncParams -from ..types.devboxes.execution_update_chunk import ExecutionUpdateChunk from ..types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView StreamFactory = Callable[[], Awaitable[AsyncStream[ExecutionUpdateChunk]]] diff --git a/src/runloop_api_client/sdk/async_execution_result.py b/src/runloop_api_client/sdk/async_execution_result.py index ff12d7f08..f1851f2e8 100644 --- a/src/runloop_api_client/sdk/async_execution_result.py +++ b/src/runloop_api_client/sdk/async_execution_result.py @@ -7,7 +7,7 @@ from .._client import AsyncRunloop from .._streaming import AsyncStream -from ..types.devboxes.execution_update_chunk import ExecutionUpdateChunk +from ..types.devboxes import ExecutionUpdateChunk from ..types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView diff --git a/src/runloop_api_client/sdk/async_snapshot.py b/src/runloop_api_client/sdk/async_snapshot.py index d5faba70f..5f9c09772 100644 --- a/src/runloop_api_client/sdk/async_snapshot.py +++ b/src/runloop_api_client/sdk/async_snapshot.py @@ -13,8 +13,8 @@ ) from .._client import AsyncRunloop from .async_devbox import AsyncDevbox +from ..types.devboxes import DevboxSnapshotAsyncStatusView from ..types.devbox_snapshot_view import DevboxSnapshotView -from ..types.devboxes.devbox_snapshot_async_status_view import DevboxSnapshotAsyncStatusView class AsyncSnapshot: diff --git a/src/runloop_api_client/sdk/devbox.py b/src/runloop_api_client/sdk/devbox.py index 356079a9d..abd02d499 100644 --- a/src/runloop_api_client/sdk/devbox.py +++ b/src/runloop_api_client/sdk/devbox.py @@ -36,9 +36,9 @@ from .execution import Execution, _StreamingGroup from .._streaming import Stream from ..lib.polling import PollingConfig +from ..types.devboxes import ExecutionUpdateChunk from .execution_result import ExecutionResult from ..types.devbox_execute_async_params import DevboxExecuteAsyncParams -from ..types.devboxes.execution_update_chunk import ExecutionUpdateChunk from ..types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView if TYPE_CHECKING: diff --git a/src/runloop_api_client/sdk/execution_result.py b/src/runloop_api_client/sdk/execution_result.py index 3d6b1bfe7..1c623119b 100644 --- a/src/runloop_api_client/sdk/execution_result.py +++ b/src/runloop_api_client/sdk/execution_result.py @@ -7,7 +7,7 @@ from .._client import Runloop from .._streaming import Stream -from ..types.devboxes.execution_update_chunk import ExecutionUpdateChunk +from ..types.devboxes import ExecutionUpdateChunk from ..types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView diff --git a/src/runloop_api_client/sdk/snapshot.py b/src/runloop_api_client/sdk/snapshot.py index faa5a7636..087a74e78 100644 --- a/src/runloop_api_client/sdk/snapshot.py +++ b/src/runloop_api_client/sdk/snapshot.py @@ -13,8 +13,8 @@ ) from .devbox import Devbox from .._client import Runloop +from ..types.devboxes import DevboxSnapshotAsyncStatusView from ..types.devbox_snapshot_view import DevboxSnapshotView -from ..types.devboxes.devbox_snapshot_async_status_view import DevboxSnapshotAsyncStatusView class Snapshot: diff --git a/tests/sdk/async_devbox/test_streaming.py b/tests/sdk/async_devbox/test_streaming.py index ea62ced8c..cd33a8f26 100644 --- a/tests/sdk/async_devbox/test_streaming.py +++ b/tests/sdk/async_devbox/test_streaming.py @@ -16,8 +16,8 @@ from tests.sdk.conftest import TASK_COMPLETION_SHORT from runloop_api_client.sdk import AsyncDevbox from runloop_api_client._streaming import AsyncStream +from runloop_api_client.types.devboxes import ExecutionUpdateChunk from runloop_api_client.sdk.async_execution import _AsyncStreamingGroup -from runloop_api_client.types.devboxes.execution_update_chunk import ExecutionUpdateChunk class TestAsyncDevboxStreaming: diff --git a/tests/sdk/devbox/test_streaming.py b/tests/sdk/devbox/test_streaming.py index 4f8ef75ff..4550b94a2 100644 --- a/tests/sdk/devbox/test_streaming.py +++ b/tests/sdk/devbox/test_streaming.py @@ -15,7 +15,7 @@ from runloop_api_client.sdk import Devbox from runloop_api_client._streaming import Stream from runloop_api_client.sdk.execution import _StreamingGroup -from runloop_api_client.types.devboxes.execution_update_chunk import ExecutionUpdateChunk +from runloop_api_client.types.devboxes import ExecutionUpdateChunk # Legacy alias for backward compatibility SHORT_SLEEP = THREAD_STARTUP_DELAY