We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 091ff78 commit bda7c30Copy full SHA for bda7c30
1 file changed
src/replicate/lib/_predictions.py
@@ -215,6 +215,6 @@ def output_iterator(prediction: Prediction, client: Replicate) -> Iterator[Any]:
215
if prediction.status == "failed":
216
raise ModelError(prediction=prediction)
217
218
- output = prediction.output or [] # type: ignore
+ output: list[Any] = prediction.output or [] # type: ignore
219
new_output = output[len(previous_output) :]
220
yield from new_output
0 commit comments