|
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, |
|
36 | 36 | from .resources.webhooks import webhooks |
37 | 37 | from .resources.deployments import deployments |
38 | 38 |
|
39 | | -if TYPE_CHECKING: |
40 | | - from .lib._files import FileOutput |
41 | | - |
42 | 39 | __all__ = [ |
43 | 40 | "Timeout", |
44 | 41 | "Transport", |
@@ -135,7 +132,7 @@ def run( |
135 | 132 | *, |
136 | 133 | wait: Union[int, bool, NotGiven] = NOT_GIVEN, |
137 | 134 | **params: Unpack[PredictionCreateParamsWithoutVersion], |
138 | | - ) -> PredictionOutput | FileOutput | Iterable[FileOutput] | Dict[str, FileOutput]: |
| 135 | + ) -> Any: |
139 | 136 | """Run a model and wait for its output.""" |
140 | 137 | from .lib._predictions import run |
141 | 138 |
|
@@ -330,7 +327,7 @@ async def run( |
330 | 327 | *, |
331 | 328 | wait: Union[int, bool, NotGiven] = NOT_GIVEN, |
332 | 329 | **params: Unpack[PredictionCreateParams], |
333 | | - ) -> PredictionOutput | FileOutput | Iterable[FileOutput] | Dict[str, FileOutput]: |
| 330 | + ) -> Any: |
334 | 331 | """Run a model and wait for its output.""" |
335 | 332 | from .lib._predictions import async_run |
336 | 333 |
|
|
0 commit comments