File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class SearchResponse(TypedDict):
20
20
spell_fixed : str
21
21
22
22
23
- class SearchSuggestionResponse (TypedDict ):
23
+ class SearchSuggestionsResponse (TypedDict ):
24
24
success : bool
25
25
"""
26
26
Indicates whether the translation was successful.
@@ -29,7 +29,7 @@ class SearchSuggestionResponse(TypedDict):
29
29
suggestions : List [str ]
30
30
31
31
32
- class SearchSuggestionParams (TypedDict ):
32
+ class SearchSuggestionsParams (TypedDict ):
33
33
query : str
34
34
"""
35
35
The search value. The maximum query character length is 200.
@@ -97,7 +97,7 @@ def search(self, params: SearchParams) -> SearchResponse:
97
97
98
98
return resp
99
99
100
- def suggestion (self , params : SearchSuggestionParams ) -> SearchSuggestionResponse :
100
+ def suggestions (self , params : SearchSuggestionsParams ) -> SearchSuggestionsResponse :
101
101
query = params ["query" ]
102
102
path = f"/web/search/suggest?query={ query } "
103
103
resp = Request (
@@ -147,9 +147,9 @@ async def search(self, params: SearchParams) -> SearchResponse:
147
147
).perform_with_content ()
148
148
return resp
149
149
150
- async def suggestion (
151
- self , params : SearchSuggestionParams
152
- ) -> SearchSuggestionResponse :
150
+ async def suggestions (
151
+ self , params : SearchSuggestionsParams
152
+ ) -> SearchSuggestionsResponse :
153
153
query = params ["query" ]
154
154
path = f"/web/search/suggest?query={ query } "
155
155
resp = await AsyncRequest (
You can’t perform that action at this time.
0 commit comments