File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ def __init__(
10
10
allow_empty_local : bool = False ,
11
11
allow_quoted_local : bool = False ,
12
12
allow_domain_literal : bool = False ,
13
+ deliverable_address : bool = True ,
13
14
):
14
15
"""
15
16
Initializes an EmailValidator object.
@@ -25,6 +26,7 @@ def __init__(
25
26
allow_empty_local ,
26
27
allow_quoted_local ,
27
28
allow_domain_literal ,
29
+ deliverable_address ,
28
30
)
29
31
30
32
def validate_email (self , email : Union [str , bytes ]) -> ValidatedEmail :
@@ -61,6 +63,7 @@ def validate_email(
61
63
allow_empty_local : bool = False ,
62
64
allow_quoted_local : bool = False ,
63
65
allow_domain_literal : bool = False ,
66
+ deliverable_address : bool = True ,
64
67
) -> ValidatedEmail :
65
68
"""
66
69
Validates an email address with optional parameters.
@@ -85,5 +88,6 @@ def validate_email(
85
88
allow_empty_local ,
86
89
allow_quoted_local ,
87
90
allow_domain_literal ,
91
+ deliverable_address ,
88
92
)
89
93
return emv .validate_email (email )
Original file line number Diff line number Diff line change 1
1
# from email_validator import EmailSyntaxError, validate_email, ValidatedEmail
2
2
from emv import validate_email
3
3
4
- validate_email ("\u0300 @test" )
4
+ print ( validate_email (
"[email protected] " ) )
You can’t perform that action at this time.
0 commit comments