Skip to content

Commit 4ffbdc3

Browse files
algolia-botmillotp
andcommitted
fix(specs): getObject return object (generated)
algolia/api-clients-automation#3446 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 23e8617 commit 4ffbdc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

algoliasearch/search/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ async def get_object(
26062606
),
26072607
] = None,
26082608
request_options: Optional[Union[dict, RequestOptions]] = None,
2609-
) -> Dict[str, str]:
2609+
) -> object:
26102610
"""
26112611
Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
26122612
@@ -2620,13 +2620,13 @@ async def get_object(
26202620
: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.
26212621
:type attributes_to_retrieve: List[str]
26222622
: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)
2623-
:return: Returns the deserialized response in a 'Dict[str, str]' result object.
2623+
:return: Returns the deserialized response in a 'object' result object.
26242624
"""
26252625
return (
26262626
await self.get_object_with_http_info(
26272627
index_name, object_id, attributes_to_retrieve, request_options
26282628
)
2629-
).deserialize(Dict[str, str])
2629+
).deserialize(object)
26302630

26312631
async def get_objects_with_http_info(
26322632
self,

0 commit comments

Comments
 (0)