13
13
from cloudflare .pagination import SyncV4PagePaginationArray , AsyncV4PagePaginationArray
14
14
from cloudflare .types .cloudforce_one import (
15
15
Item ,
16
- List ,
17
16
Quota ,
17
+ ListItem ,
18
18
RequestTypes ,
19
19
RequestConstants ,
20
20
RequestDeleteResponse ,
@@ -155,7 +155,7 @@ def test_method_list(self, client: Cloudflare) -> None:
155
155
page = 0 ,
156
156
per_page = 10 ,
157
157
)
158
- assert_matches_type (SyncV4PagePaginationArray [List ], request , path = ["response" ])
158
+ assert_matches_type (SyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
159
159
160
160
@pytest .mark .skip ()
161
161
@parametrize
@@ -173,7 +173,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
173
173
sort_order = "asc" ,
174
174
status = "open" ,
175
175
)
176
- assert_matches_type (SyncV4PagePaginationArray [List ], request , path = ["response" ])
176
+ assert_matches_type (SyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
177
177
178
178
@pytest .mark .skip ()
179
179
@parametrize
@@ -187,7 +187,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
187
187
assert response .is_closed is True
188
188
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
189
189
request = response .parse ()
190
- assert_matches_type (SyncV4PagePaginationArray [List ], request , path = ["response" ])
190
+ assert_matches_type (SyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
191
191
192
192
@pytest .mark .skip ()
193
193
@parametrize
@@ -201,7 +201,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
201
201
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
202
202
203
203
request = response .parse ()
204
- assert_matches_type (SyncV4PagePaginationArray [List ], request , path = ["response" ])
204
+ assert_matches_type (SyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
205
205
206
206
assert cast (Any , response .is_closed ) is True
207
207
@@ -578,7 +578,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
578
578
page = 0 ,
579
579
per_page = 10 ,
580
580
)
581
- assert_matches_type (AsyncV4PagePaginationArray [List ], request , path = ["response" ])
581
+ assert_matches_type (AsyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
582
582
583
583
@pytest .mark .skip ()
584
584
@parametrize
@@ -596,7 +596,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
596
596
sort_order = "asc" ,
597
597
status = "open" ,
598
598
)
599
- assert_matches_type (AsyncV4PagePaginationArray [List ], request , path = ["response" ])
599
+ assert_matches_type (AsyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
600
600
601
601
@pytest .mark .skip ()
602
602
@parametrize
@@ -610,7 +610,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
610
610
assert response .is_closed is True
611
611
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
612
612
request = await response .parse ()
613
- assert_matches_type (AsyncV4PagePaginationArray [List ], request , path = ["response" ])
613
+ assert_matches_type (AsyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
614
614
615
615
@pytest .mark .skip ()
616
616
@parametrize
@@ -624,7 +624,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
624
624
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
625
625
626
626
request = await response .parse ()
627
- assert_matches_type (AsyncV4PagePaginationArray [List ], request , path = ["response" ])
627
+ assert_matches_type (AsyncV4PagePaginationArray [ListItem ], request , path = ["response" ])
628
628
629
629
assert cast (Any , response .is_closed ) is True
630
630
0 commit comments