@@ -73,22 +73,6 @@ class NSFWResponse(BaseResponse):
7373 gore_score : float
7474
7575
76- class EmailValidationParams (TypedDict ):
77- email : str
78-
79-
80- class EmailValidationResponse (TypedDict ):
81- success : bool
82- email : str
83- disposable : bool
84- role_account : bool
85- free : bool
86- has_mx_records : bool
87- username : bool
88- domain : bool
89- valid : bool
90-
91-
9276class Validate (ClientConfig ):
9377
9478 config : RequestConfig
@@ -106,20 +90,6 @@ def __init__(
10690 disable_request_logging = disable_request_logging ,
10791 )
10892
109- def email (self , params : EmailValidationParams ) -> EmailValidationResponse :
110- path = build_path (
111- base_path = "/validate/email" ,
112- params = params ,
113- )
114-
115- resp = Request (
116- config = self .config ,
117- path = path ,
118- params = cast (Dict [Any , Any ], params ),
119- verb = "get" ,
120- ).perform_with_content ()
121- return resp
122-
12393 @overload
12494 def nsfw (self , params : NSFWParams ) -> NSFWResponse : ...
12595 @overload
@@ -210,19 +180,6 @@ def __init__(
210180 disable_request_logging = disable_request_logging ,
211181 )
212182
213- async def email (self , params : EmailValidationParams ) -> EmailValidationResponse :
214- path = build_path (
215- base_path = "/validate/email" ,
216- params = params ,
217- )
218- resp = await AsyncRequest (
219- config = self .config ,
220- path = path ,
221- params = cast (Dict [Any , Any ], params ),
222- verb = "get" ,
223- ).perform_with_content ()
224- return resp
225-
226183 @overload
227184 async def nsfw (self , params : NSFWParams ) -> NSFWResponse : ...
228185 @overload
0 commit comments