Skip to content

Commit 0001e9b

Browse files
authored
fix(python): required aggregator parameter in browse_* (#4016)
1 parent 44e58c7 commit 0001e9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/python/search_helpers.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
{{^isSyncClient}}async {{/isSyncClient}}def browse_objects(
122122
self,
123123
index_name: str,
124-
aggregator: Optional[Callable[[BrowseResponse], None]],
124+
aggregator: Callable[[BrowseResponse], None],
125125
browse_params: BrowseParamsObject = BrowseParamsObject(),
126126
request_options: Optional[Union[dict, RequestOptions]] = None,
127127
) -> BrowseResponse:
@@ -146,7 +146,7 @@
146146
{{^isSyncClient}}async {{/isSyncClient}}def browse_rules(
147147
self,
148148
index_name: str,
149-
aggregator: Optional[Callable[[SearchRulesResponse], None]],
149+
aggregator: Callable[[SearchRulesResponse], None],
150150
search_rules_params: SearchRulesParams = SearchRulesParams(hits_per_page=1000),
151151
request_options: Optional[Union[dict, RequestOptions]] = None,
152152
) -> SearchRulesResponse:

0 commit comments

Comments
 (0)