|
6 | 6 |
|
7 | 7 | import httpx |
8 | 8 |
|
9 | | -from .runs import ( |
10 | | - RunsResource, |
11 | | - AsyncRunsResource, |
12 | | - RunsResourceWithRawResponse, |
13 | | - AsyncRunsResourceWithRawResponse, |
14 | | - RunsResourceWithStreamingResponse, |
15 | | - AsyncRunsResourceWithStreamingResponse, |
16 | | -) |
17 | | -from ...types import ( |
| 9 | +from ..types import ( |
18 | 10 | benchmark_list_params, |
19 | 11 | benchmark_create_params, |
20 | 12 | benchmark_update_params, |
|
23 | 15 | benchmark_list_public_params, |
24 | 16 | benchmark_update_scenarios_params, |
25 | 17 | ) |
26 | | -from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given |
27 | | -from ..._utils import maybe_transform, async_maybe_transform |
28 | | -from ..._compat import cached_property |
29 | | -from ..._resource import SyncAPIResource, AsyncAPIResource |
30 | | -from ..._response import ( |
| 18 | +from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given |
| 19 | +from .._utils import maybe_transform, async_maybe_transform |
| 20 | +from .._compat import cached_property |
| 21 | +from .._resource import SyncAPIResource, AsyncAPIResource |
| 22 | +from .._response import ( |
31 | 23 | to_raw_response_wrapper, |
32 | 24 | to_streamed_response_wrapper, |
33 | 25 | async_to_raw_response_wrapper, |
34 | 26 | async_to_streamed_response_wrapper, |
35 | 27 | ) |
36 | | -from ...pagination import SyncBenchmarksCursorIDPage, AsyncBenchmarksCursorIDPage |
37 | | -from ..._base_client import AsyncPaginator, make_request_options |
38 | | -from ...types.benchmark_view import BenchmarkView |
39 | | -from ...types.benchmark_run_view import BenchmarkRunView |
40 | | -from ...types.shared_params.run_profile import RunProfile |
41 | | -from ...types.scenario_definition_list_view import ScenarioDefinitionListView |
| 28 | +from ..pagination import SyncBenchmarksCursorIDPage, AsyncBenchmarksCursorIDPage |
| 29 | +from .._base_client import AsyncPaginator, make_request_options |
| 30 | +from ..types.benchmark_view import BenchmarkView |
| 31 | +from ..types.benchmark_run_view import BenchmarkRunView |
| 32 | +from ..types.shared_params.run_profile import RunProfile |
| 33 | +from ..types.scenario_definition_list_view import ScenarioDefinitionListView |
42 | 34 |
|
43 | 35 | __all__ = ["BenchmarksResource", "AsyncBenchmarksResource"] |
44 | 36 |
|
45 | 37 |
|
46 | 38 | class BenchmarksResource(SyncAPIResource): |
47 | | - @cached_property |
48 | | - def runs(self) -> RunsResource: |
49 | | - return RunsResource(self._client) |
50 | | - |
51 | 39 | @cached_property |
52 | 40 | def with_raw_response(self) -> BenchmarksResourceWithRawResponse: |
53 | 41 | """ |
@@ -513,10 +501,6 @@ def update_scenarios( |
513 | 501 |
|
514 | 502 |
|
515 | 503 | class AsyncBenchmarksResource(AsyncAPIResource): |
516 | | - @cached_property |
517 | | - def runs(self) -> AsyncRunsResource: |
518 | | - return AsyncRunsResource(self._client) |
519 | | - |
520 | 504 | @cached_property |
521 | 505 | def with_raw_response(self) -> AsyncBenchmarksResourceWithRawResponse: |
522 | 506 | """ |
@@ -1010,10 +994,6 @@ def __init__(self, benchmarks: BenchmarksResource) -> None: |
1010 | 994 | benchmarks.update_scenarios, |
1011 | 995 | ) |
1012 | 996 |
|
1013 | | - @cached_property |
1014 | | - def runs(self) -> RunsResourceWithRawResponse: |
1015 | | - return RunsResourceWithRawResponse(self._benchmarks.runs) |
1016 | | - |
1017 | 997 |
|
1018 | 998 | class AsyncBenchmarksResourceWithRawResponse: |
1019 | 999 | def __init__(self, benchmarks: AsyncBenchmarksResource) -> None: |
@@ -1044,10 +1024,6 @@ def __init__(self, benchmarks: AsyncBenchmarksResource) -> None: |
1044 | 1024 | benchmarks.update_scenarios, |
1045 | 1025 | ) |
1046 | 1026 |
|
1047 | | - @cached_property |
1048 | | - def runs(self) -> AsyncRunsResourceWithRawResponse: |
1049 | | - return AsyncRunsResourceWithRawResponse(self._benchmarks.runs) |
1050 | | - |
1051 | 1027 |
|
1052 | 1028 | class BenchmarksResourceWithStreamingResponse: |
1053 | 1029 | def __init__(self, benchmarks: BenchmarksResource) -> None: |
@@ -1078,10 +1054,6 @@ def __init__(self, benchmarks: BenchmarksResource) -> None: |
1078 | 1054 | benchmarks.update_scenarios, |
1079 | 1055 | ) |
1080 | 1056 |
|
1081 | | - @cached_property |
1082 | | - def runs(self) -> RunsResourceWithStreamingResponse: |
1083 | | - return RunsResourceWithStreamingResponse(self._benchmarks.runs) |
1084 | | - |
1085 | 1057 |
|
1086 | 1058 | class AsyncBenchmarksResourceWithStreamingResponse: |
1087 | 1059 | def __init__(self, benchmarks: AsyncBenchmarksResource) -> None: |
@@ -1111,7 +1083,3 @@ def __init__(self, benchmarks: AsyncBenchmarksResource) -> None: |
1111 | 1083 | self.update_scenarios = async_to_streamed_response_wrapper( |
1112 | 1084 | benchmarks.update_scenarios, |
1113 | 1085 | ) |
1114 | | - |
1115 | | - @cached_property |
1116 | | - def runs(self) -> AsyncRunsResourceWithStreamingResponse: |
1117 | | - return AsyncRunsResourceWithStreamingResponse(self._benchmarks.runs) |
0 commit comments