From 4ffbdc35dcfabac06f6b5a10a183678c7c103bd8 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 30 Jul 2024 08:11:24 +0000 Subject: [PATCH] fix(specs): getObject return object (generated) https://github.com/algolia/api-clients-automation/pull/3446 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- algoliasearch/search/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algoliasearch/search/client.py b/algoliasearch/search/client.py index 2566d0c42..64334b701 100644 --- a/algoliasearch/search/client.py +++ b/algoliasearch/search/client.py @@ -2606,7 +2606,7 @@ async def get_object( ), ] = None, request_options: Optional[Union[dict, RequestOptions]] = None, - ) -> Dict[str, str]: + ) -> object: """ Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects). @@ -2620,13 +2620,13 @@ async def get_object( :param attributes_to_retrieve: Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key. :type attributes_to_retrieve: List[str] :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) - :return: Returns the deserialized response in a 'Dict[str, str]' result object. + :return: Returns the deserialized response in a 'object' result object. """ return ( await self.get_object_with_http_info( index_name, object_id, attributes_to_retrieve, request_options ) - ).deserialize(Dict[str, str]) + ).deserialize(object) async def get_objects_with_http_info( self,