|
6 | 6 | from .search import ( |
7 | 7 | Search, |
8 | 8 | SearchParams, |
9 | | - SearchSuggestionParams, |
10 | | - SearchSuggestionResponse, |
| 9 | + SearchSuggestionsParams, |
| 10 | + SearchSuggestionsResponse, |
11 | 11 | SearchResponse, |
12 | 12 | AsyncSearch, |
13 | 13 | ) |
@@ -198,15 +198,15 @@ def search(self, params: SearchParams) -> SearchResponse: |
198 | 198 | ) |
199 | 199 | return s.search(params) |
200 | 200 |
|
201 | | - def search_suggestion( |
202 | | - self, params: SearchSuggestionParams |
203 | | - ) -> SearchSuggestionResponse: |
| 201 | + def search_suggestions( |
| 202 | + self, params: SearchSuggestionsParams |
| 203 | + ) -> SearchSuggestionsResponse: |
204 | 204 | s = Search( |
205 | 205 | self.api_key, |
206 | 206 | self.api_url, |
207 | 207 | disable_request_logging=self.config.get("disable_request_logging"), |
208 | 208 | ) |
209 | | - return s.suggestion(params) |
| 209 | + return s.suggestions(params) |
210 | 210 |
|
211 | 211 |
|
212 | 212 | class AsyncWeb(ClientConfig): |
@@ -276,12 +276,12 @@ async def search(self, params: SearchParams) -> SearchResponse: |
276 | 276 | ) |
277 | 277 | return await s.search(params) |
278 | 278 |
|
279 | | - async def search_suggestion( |
280 | | - self, params: SearchSuggestionParams |
281 | | - ) -> SearchSuggestionResponse: |
| 279 | + async def search_suggestions( |
| 280 | + self, params: SearchSuggestionsParams |
| 281 | + ) -> SearchSuggestionsResponse: |
282 | 282 | s = AsyncSearch( |
283 | 283 | self.api_key, |
284 | 284 | self.api_url, |
285 | 285 | disable_request_logging=self.config.get("disable_request_logging"), |
286 | 286 | ) |
287 | | - return await s.suggestion(params) |
| 287 | + return await s.suggestions(params) |
0 commit comments