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):
2020 spell_fixed : str
2121
2222
23- class SearchSuggestionResponse (TypedDict ):
23+ class SearchSuggestionsResponse (TypedDict ):
2424 success : bool
2525 """
2626 Indicates whether the translation was successful.
@@ -29,7 +29,7 @@ class SearchSuggestionResponse(TypedDict):
2929 suggestions : List [str ]
3030
3131
32- class SearchSuggestionParams (TypedDict ):
32+ class SearchSuggestionsParams (TypedDict ):
3333 query : str
3434 """
3535 The search value. The maximum query character length is 200.
@@ -97,7 +97,7 @@ def search(self, params: SearchParams) -> SearchResponse:
9797
9898 return resp
9999
100- def suggestion (self , params : SearchSuggestionParams ) -> SearchSuggestionResponse :
100+ def suggestions (self , params : SearchSuggestionsParams ) -> SearchSuggestionsResponse :
101101 query = params ["query" ]
102102 path = f"/web/search/suggest?query={ query } "
103103 resp = Request (
@@ -147,9 +147,9 @@ async def search(self, params: SearchParams) -> SearchResponse:
147147 ).perform_with_content ()
148148 return resp
149149
150- async def suggestion (
151- self , params : SearchSuggestionParams
152- ) -> SearchSuggestionResponse :
150+ async def suggestions (
151+ self , params : SearchSuggestionsParams
152+ ) -> SearchSuggestionsResponse :
153153 query = params ["query" ]
154154 path = f"/web/search/suggest?query={ query } "
155155 resp = await AsyncRequest (
You can’t perform that action at this time.
0 commit comments