|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import asyncio |
6 | | -from typing import Dict, Mapping, Optional |
| 6 | +from typing import Dict, List, Mapping, Optional |
7 | 7 | from pathlib import Path |
8 | 8 | from datetime import timedelta |
9 | 9 | from typing_extensions import Unpack |
@@ -150,7 +150,7 @@ def from_id(self, devbox_id: str) -> AsyncDevbox: |
150 | 150 | async def list( |
151 | 151 | self, |
152 | 152 | **params: Unpack[SDKDevboxListParams], |
153 | | - ) -> list[AsyncDevbox]: |
| 153 | + ) -> List[AsyncDevbox]: |
154 | 154 | """List devboxes accessible to the caller. |
155 | 155 |
|
156 | 156 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKDevboxListParams` for available parameters |
@@ -186,7 +186,7 @@ def __init__(self, client: AsyncRunloop) -> None: |
186 | 186 | async def list( |
187 | 187 | self, |
188 | 188 | **params: Unpack[SDKDiskSnapshotListParams], |
189 | | - ) -> list[AsyncSnapshot]: |
| 189 | + ) -> List[AsyncSnapshot]: |
190 | 190 | """List snapshots created from devboxes. |
191 | 191 |
|
192 | 192 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKDiskSnapshotListParams` for available parameters |
@@ -277,7 +277,7 @@ def from_id(self, blueprint_id: str) -> AsyncBlueprint: |
277 | 277 | async def list( |
278 | 278 | self, |
279 | 279 | **params: Unpack[SDKBlueprintListParams], |
280 | | - ) -> list[AsyncBlueprint]: |
| 280 | + ) -> List[AsyncBlueprint]: |
281 | 281 | """List available blueprints. |
282 | 282 |
|
283 | 283 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKBlueprintListParams` for available parameters |
@@ -338,7 +338,7 @@ def from_id(self, object_id: str) -> AsyncStorageObject: |
338 | 338 | async def list( |
339 | 339 | self, |
340 | 340 | **params: Unpack[SDKObjectListParams], |
341 | | - ) -> list[AsyncStorageObject]: |
| 341 | + ) -> List[AsyncStorageObject]: |
342 | 342 | """List storage objects owned by the caller. |
343 | 343 |
|
344 | 344 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKObjectListParams` for available parameters |
@@ -541,12 +541,12 @@ def from_id(self, scorer_id: str) -> AsyncScorer: |
541 | 541 | """ |
542 | 542 | return AsyncScorer(self._client, scorer_id) |
543 | 543 |
|
544 | | - async def list(self, **params: Unpack[SDKScorerListParams]) -> list[AsyncScorer]: |
| 544 | + async def list(self, **params: Unpack[SDKScorerListParams]) -> List[AsyncScorer]: |
545 | 545 | """List all scorers, optionally filtered by parameters. |
546 | 546 |
|
547 | 547 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKScorerListParams` for available parameters |
548 | 548 | :return: List of scorers |
549 | | - :rtype: list[AsyncScorer] |
| 549 | + :rtype: List[AsyncScorer] |
550 | 550 | """ |
551 | 551 | page = await self._client.scenarios.scorers.list(**params) |
552 | 552 | return [AsyncScorer(self._client, item.id) async for item in page] |
@@ -599,7 +599,7 @@ async def create_from_npm( |
599 | 599 | package_name: str, |
600 | 600 | npm_version: Optional[str] = None, |
601 | 601 | registry_url: Optional[str] = None, |
602 | | - agent_setup: Optional[list[str]] = None, |
| 602 | + agent_setup: Optional[List[str]] = None, |
603 | 603 | **params: Unpack[SDKAgentCreateParams], |
604 | 604 | ) -> AsyncAgent: |
605 | 605 | """Create an agent from an NPM package. |
@@ -641,7 +641,7 @@ async def create_from_pip( |
641 | 641 | package_name: str, |
642 | 642 | pip_version: Optional[str] = None, |
643 | 643 | registry_url: Optional[str] = None, |
644 | | - agent_setup: Optional[list[str]] = None, |
| 644 | + agent_setup: Optional[List[str]] = None, |
645 | 645 | **params: Unpack[SDKAgentCreateParams], |
646 | 646 | ) -> AsyncAgent: |
647 | 647 | """Create an agent from a Pip package. |
@@ -682,7 +682,7 @@ async def create_from_git( |
682 | 682 | *, |
683 | 683 | repository: str, |
684 | 684 | ref: Optional[str] = None, |
685 | | - agent_setup: Optional[list[str]] = None, |
| 685 | + agent_setup: Optional[List[str]] = None, |
686 | 686 | **params: Unpack[SDKAgentCreateParams], |
687 | 687 | ) -> AsyncAgent: |
688 | 688 | """Create an agent from a Git repository. |
@@ -718,7 +718,7 @@ async def create_from_object( |
718 | 718 | self, |
719 | 719 | *, |
720 | 720 | object_id: str, |
721 | | - agent_setup: Optional[list[str]] = None, |
| 721 | + agent_setup: Optional[List[str]] = None, |
722 | 722 | **params: Unpack[SDKAgentCreateParams], |
723 | 723 | ) -> AsyncAgent: |
724 | 724 | """Create an agent from a storage object. |
@@ -759,7 +759,7 @@ def from_id(self, agent_id: str) -> AsyncAgent: |
759 | 759 | async def list( |
760 | 760 | self, |
761 | 761 | **params: Unpack[SDKAgentListParams], |
762 | | - ) -> list[AsyncAgent]: |
| 762 | + ) -> List[AsyncAgent]: |
763 | 763 | """List agents accessible to the caller. |
764 | 764 |
|
765 | 765 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKAgentListParams` for available parameters |
@@ -800,7 +800,7 @@ def from_id(self, scenario_id: str) -> AsyncScenario: |
800 | 800 | """ |
801 | 801 | return AsyncScenario(self._client, scenario_id) |
802 | 802 |
|
803 | | - async def list(self, **params: Unpack[SDKScenarioListParams]) -> list[AsyncScenario]: |
| 803 | + async def list(self, **params: Unpack[SDKScenarioListParams]) -> List[AsyncScenario]: |
804 | 804 | """List all scenarios, optionally filtered by parameters. |
805 | 805 |
|
806 | 806 | :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKScenarioListParams` for available parameters |
|
0 commit comments