1111from tests .utils import assert_matches_type
1212from hyperspell .types import (
1313 DocumentStatus ,
14- DocumentGetResponse ,
1514 DocumentListResponse ,
1615)
1716from hyperspell ._utils import parse_datetime
@@ -142,7 +141,7 @@ def test_method_get(self, client: Hyperspell) -> None:
142141 document = client .documents .get (
143142 0 ,
144143 )
145- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
144+ assert_matches_type (object , document , path = ["response" ])
146145
147146 @parametrize
148147 def test_raw_response_get (self , client : Hyperspell ) -> None :
@@ -153,7 +152,7 @@ def test_raw_response_get(self, client: Hyperspell) -> None:
153152 assert response .is_closed is True
154153 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
155154 document = response .parse ()
156- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
155+ assert_matches_type (object , document , path = ["response" ])
157156
158157 @parametrize
159158 def test_streaming_response_get (self , client : Hyperspell ) -> None :
@@ -164,7 +163,7 @@ def test_streaming_response_get(self, client: Hyperspell) -> None:
164163 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
165164
166165 document = response .parse ()
167- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
166+ assert_matches_type (object , document , path = ["response" ])
168167
169168 assert cast (Any , response .is_closed ) is True
170169
@@ -325,7 +324,7 @@ async def test_method_get(self, async_client: AsyncHyperspell) -> None:
325324 document = await async_client .documents .get (
326325 0 ,
327326 )
328- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
327+ assert_matches_type (object , document , path = ["response" ])
329328
330329 @parametrize
331330 async def test_raw_response_get (self , async_client : AsyncHyperspell ) -> None :
@@ -336,7 +335,7 @@ async def test_raw_response_get(self, async_client: AsyncHyperspell) -> None:
336335 assert response .is_closed is True
337336 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
338337 document = await response .parse ()
339- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
338+ assert_matches_type (object , document , path = ["response" ])
340339
341340 @parametrize
342341 async def test_streaming_response_get (self , async_client : AsyncHyperspell ) -> None :
@@ -347,7 +346,7 @@ async def test_streaming_response_get(self, async_client: AsyncHyperspell) -> No
347346 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
348347
349348 document = await response .parse ()
350- assert_matches_type (DocumentGetResponse , document , path = ["response" ])
349+ assert_matches_type (object , document , path = ["response" ])
351350
352351 assert cast (Any , response .is_closed ) is True
353352
0 commit comments