Skip to content

Commit 824c430

Browse files
updating all references of suggestion -> suggestions
1 parent 815a3a4 commit 824c430

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jigsawstack/search.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)