14
14
from finch .types .hris .benefits import (
15
15
IndividualBenefit ,
16
16
EnrolledIndividual ,
17
+ UnenrolledIndividual ,
17
18
IndividualEnrolledIDsResponse ,
18
19
)
19
20
@@ -176,15 +177,15 @@ def test_method_unenroll_many(self, client: Finch) -> None:
176
177
individual = client .hris .benefits .individuals .unenroll_many (
177
178
benefit_id = "benefit_id" ,
178
179
)
179
- assert_matches_type (SyncSinglePage [object ], individual , path = ["response" ])
180
+ assert_matches_type (SyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
180
181
181
182
@parametrize
182
183
def test_method_unenroll_many_with_all_params (self , client : Finch ) -> None :
183
184
individual = client .hris .benefits .individuals .unenroll_many (
184
185
benefit_id = "benefit_id" ,
185
186
individual_ids = ["string" ],
186
187
)
187
- assert_matches_type (SyncSinglePage [object ], individual , path = ["response" ])
188
+ assert_matches_type (SyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
188
189
189
190
@parametrize
190
191
def test_raw_response_unenroll_many (self , client : Finch ) -> None :
@@ -195,7 +196,7 @@ def test_raw_response_unenroll_many(self, client: Finch) -> None:
195
196
assert response .is_closed is True
196
197
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
197
198
individual = response .parse ()
198
- assert_matches_type (SyncSinglePage [object ], individual , path = ["response" ])
199
+ assert_matches_type (SyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
199
200
200
201
@parametrize
201
202
def test_streaming_response_unenroll_many (self , client : Finch ) -> None :
@@ -206,7 +207,7 @@ def test_streaming_response_unenroll_many(self, client: Finch) -> None:
206
207
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
207
208
208
209
individual = response .parse ()
209
- assert_matches_type (SyncSinglePage [object ], individual , path = ["response" ])
210
+ assert_matches_type (SyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
210
211
211
212
assert cast (Any , response .is_closed ) is True
212
213
@@ -374,15 +375,15 @@ async def test_method_unenroll_many(self, async_client: AsyncFinch) -> None:
374
375
individual = await async_client .hris .benefits .individuals .unenroll_many (
375
376
benefit_id = "benefit_id" ,
376
377
)
377
- assert_matches_type (AsyncSinglePage [object ], individual , path = ["response" ])
378
+ assert_matches_type (AsyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
378
379
379
380
@parametrize
380
381
async def test_method_unenroll_many_with_all_params (self , async_client : AsyncFinch ) -> None :
381
382
individual = await async_client .hris .benefits .individuals .unenroll_many (
382
383
benefit_id = "benefit_id" ,
383
384
individual_ids = ["string" ],
384
385
)
385
- assert_matches_type (AsyncSinglePage [object ], individual , path = ["response" ])
386
+ assert_matches_type (AsyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
386
387
387
388
@parametrize
388
389
async def test_raw_response_unenroll_many (self , async_client : AsyncFinch ) -> None :
@@ -393,7 +394,7 @@ async def test_raw_response_unenroll_many(self, async_client: AsyncFinch) -> Non
393
394
assert response .is_closed is True
394
395
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
395
396
individual = response .parse ()
396
- assert_matches_type (AsyncSinglePage [object ], individual , path = ["response" ])
397
+ assert_matches_type (AsyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
397
398
398
399
@parametrize
399
400
async def test_streaming_response_unenroll_many (self , async_client : AsyncFinch ) -> None :
@@ -404,7 +405,7 @@ async def test_streaming_response_unenroll_many(self, async_client: AsyncFinch)
404
405
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
405
406
406
407
individual = await response .parse ()
407
- assert_matches_type (AsyncSinglePage [object ], individual , path = ["response" ])
408
+ assert_matches_type (AsyncSinglePage [UnenrolledIndividual ], individual , path = ["response" ])
408
409
409
410
assert cast (Any , response .is_closed ) is True
410
411
0 commit comments