Skip to content

Commit d609b51

Browse files
committed
update to sentiment
1 parent d0203d8 commit d609b51

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

jigsawstack/sentiment.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .async_request import AsyncRequest
55
from typing import List, Union
66
from ._config import ClientConfig
7+
from ._types import BaseResponse
78

89

910
class SentimentParams(TypedDict):
@@ -36,11 +37,7 @@ class SentimentResult(TypedDict):
3637
sentences: List[SentimentSentenceResult]
3738

3839

39-
class SentimentResponse(TypedDict):
40-
success: bool
41-
"""
42-
Indicates whether the translation was successful.
43-
"""
40+
class SentimentResponse(BaseResponse):
4441
sentiment: SentimentResult
4542

4643

0 commit comments

Comments
 (0)