@@ -119,7 +119,7 @@ def test_run_with_file_list_output(self, respx_mock: MockRouter) -> None:
119119 # Mock the endpoint
120120 respx_mock .post ("/predictions" ).mock (return_value = httpx .Response (201 , json = mock_prediction ))
121121
122- output : list [FileOutput ] = self .client .run ("some-model-ref" , input = {"prompt" : "generate multiple images" }) # type: ignore
122+ output : list [FileOutput ] = self .client .run ("some-model-ref" , input = {"prompt" : "generate multiple images" })
123123
124124 assert isinstance (output , list )
125125 assert len (output ) == 2
@@ -137,7 +137,7 @@ def test_run_with_dict_file_output(self, respx_mock: MockRouter) -> None:
137137 return_value = httpx .Response (201 , json = create_mock_prediction (output = file_urls ))
138138 )
139139
140- output : Dict [str , FileOutput ] = self .client .run ("some-model-ref" , input = {"prompt" : "structured output" }) # type: ignore
140+ output : Dict [str , FileOutput ] = self .client .run ("some-model-ref" , input = {"prompt" : "structured output" })
141141
142142 assert isinstance (output , dict )
143143 assert len (output ) == 2
@@ -181,7 +181,7 @@ def test_run_with_iterator(self, respx_mock: MockRouter) -> None:
181181 return_value = httpx .Response (201 , json = create_mock_prediction (output = output_iterator ))
182182 )
183183
184- output = self .client .run ("some-model-ref" , input = {"prompt" : "generate iterator" })
184+ output : list [ str ] = self .client .run ("some-model-ref" , input = {"prompt" : "generate iterator" })
185185
186186 assert isinstance (output , list )
187187 assert len (output ) == 3
@@ -230,7 +230,7 @@ def test_run_with_file_output_iterator(self, respx_mock: MockRouter) -> None:
230230 return_value = httpx .Response (200 , json = create_mock_prediction (output = file_urls ))
231231 )
232232
233- output = self .client .run ("some-model-ref" , input = {"prompt" : "generate file iterator" })
233+ output : list [ FileOutput ] = self .client .run ("some-model-ref" , input = {"prompt" : "generate file iterator" })
234234
235235 assert isinstance (output , list )
236236 assert len (output ) == 3
@@ -312,7 +312,7 @@ async def test_async_run_with_file_list_output(self, respx_mock: MockRouter) ->
312312
313313 output : list [AsyncFileOutput ] = await self .client .run (
314314 "some-model-ref" , input = {"prompt" : "generate multiple images" }
315- ) # type: ignore
315+ )
316316
317317 assert isinstance (output , list )
318318 assert len (output ) == 2
@@ -332,7 +332,7 @@ async def test_async_run_with_dict_file_output(self, respx_mock: MockRouter) ->
332332
333333 output : Dict [str , AsyncFileOutput ] = await self .client .run (
334334 "some-model-ref" , input = {"prompt" : "structured output" }
335- ) # type: ignore
335+ )
336336
337337 assert isinstance (output , dict )
338338 assert len (output ) == 2
@@ -376,7 +376,7 @@ async def test_async_run_with_iterator(self, respx_mock: MockRouter) -> None:
376376 return_value = httpx .Response (201 , json = create_mock_prediction (output = output_iterator ))
377377 )
378378
379- output = await self .client .run ("some-model-ref" , input = {"prompt" : "generate iterator" })
379+ output : list [ str ] = await self .client .run ("some-model-ref" , input = {"prompt" : "generate iterator" })
380380
381381 assert isinstance (output , list )
382382 assert len (output ) == 3
@@ -425,7 +425,9 @@ async def test_async_run_with_file_output_iterator(self, respx_mock: MockRouter)
425425 return_value = httpx .Response (200 , json = create_mock_prediction (output = file_urls ))
426426 )
427427
428- output = await self .client .run ("some-model-ref" , input = {"prompt" : "generate file iterator" })
428+ output : list [AsyncFileOutput ] = await self .client .run (
429+ "some-model-ref" , input = {"prompt" : "generate file iterator" }
430+ )
429431
430432 assert isinstance (output , list )
431433 assert len (output ) == 3
0 commit comments