Skip to content

Commit d0203d8

Browse files
committed
update profanity
1 parent f6ab1e2 commit d0203d8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

jigsawstack/validate.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ class ProfanityParams(TypedDict):
4646
censor_replacement: NotRequired[str]
4747

4848

49+
class Profanity(TypedDict):
50+
profanity: Union[str, None]
51+
startIndex: int
52+
endIndex: int
53+
54+
4955
class ProfanityResponse(BaseResponse):
56+
message: str
5057
clean_text: str
51-
profanities: List[str]
52-
profanities_found: int
58+
profanities: List[Profanity]
59+
profanities_found: bool
5360

5461

5562
class NSFWParams(TypedDict):

0 commit comments

Comments
 (0)