|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | import os |
6 | | -from typing import TYPE_CHECKING, Any, Dict, Union, Mapping, Iterable |
| 6 | +from typing import TYPE_CHECKING, Any, Union, Mapping |
7 | 7 | from typing_extensions import Self, Unpack, override |
8 | 8 |
|
9 | 9 | import httpx |
|
12 | 12 |
|
13 | 13 | from . import _exceptions |
14 | 14 | from ._qs import Querystring |
15 | | -from .types import PredictionOutput, PredictionCreateParams |
| 15 | +from .types import PredictionCreateParams |
16 | 16 | from ._types import ( |
17 | 17 | NOT_GIVEN, |
18 | 18 | Omit, |
|
39 | 39 | from .resources.webhooks import webhooks |
40 | 40 | from .resources.deployments import deployments |
41 | 41 |
|
42 | | -if TYPE_CHECKING: |
43 | | - from .lib._files import FileOutput |
44 | | - |
45 | 42 | __all__ = [ |
46 | 43 | "Timeout", |
47 | 44 | "Transport", |
@@ -138,7 +135,7 @@ def run( |
138 | 135 | *, |
139 | 136 | wait: Union[int, bool, NotGiven] = NOT_GIVEN, |
140 | 137 | **params: Unpack[PredictionCreateParamsWithoutVersion], |
141 | | - ) -> PredictionOutput | FileOutput | Iterable[FileOutput] | Dict[str, FileOutput]: |
| 138 | + ) -> Any: |
142 | 139 | """Run a model and wait for its output.""" |
143 | 140 | from .lib._predictions import run |
144 | 141 |
|
@@ -333,7 +330,7 @@ async def run( |
333 | 330 | *, |
334 | 331 | wait: Union[int, bool, NotGiven] = NOT_GIVEN, |
335 | 332 | **params: Unpack[PredictionCreateParams], |
336 | | - ) -> PredictionOutput | FileOutput | Iterable[FileOutput] | Dict[str, FileOutput]: |
| 333 | + ) -> Any: |
337 | 334 | """Run a model and wait for its output.""" |
338 | 335 | from .lib._predictions import async_run |
339 | 336 |
|
|
0 commit comments