From 0711c5b6162f7207d0089273055f4d239e48d776 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Tue, 22 Oct 2024 14:39:41 +0200 Subject: [PATCH] fix(python): required aggregator parameter in browse_* --- templates/python/search_helpers.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/python/search_helpers.mustache b/templates/python/search_helpers.mustache index 7accf339c1a..eb082abc8a1 100644 --- a/templates/python/search_helpers.mustache +++ b/templates/python/search_helpers.mustache @@ -121,7 +121,7 @@ {{^isSyncClient}}async {{/isSyncClient}}def browse_objects( self, index_name: str, - aggregator: Optional[Callable[[BrowseResponse], None]], + aggregator: Callable[[BrowseResponse], None], browse_params: BrowseParamsObject = BrowseParamsObject(), request_options: Optional[Union[dict, RequestOptions]] = None, ) -> BrowseResponse: @@ -146,7 +146,7 @@ {{^isSyncClient}}async {{/isSyncClient}}def browse_rules( self, index_name: str, - aggregator: Optional[Callable[[SearchRulesResponse], None]], + aggregator: Callable[[SearchRulesResponse], None], search_rules_params: SearchRulesParams = SearchRulesParams(hits_per_page=1000), request_options: Optional[Union[dict, RequestOptions]] = None, ) -> SearchRulesResponse: