Skip to content

Commit 13ab9f2

Browse files
committed
quick push
1 parent 873d56b commit 13ab9f2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

emv/validator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def __init__(
1010
allow_empty_local: bool = False,
1111
allow_quoted_local: bool = False,
1212
allow_domain_literal: bool = False,
13+
deliverable_address: bool = True,
1314
):
1415
"""
1516
Initializes an EmailValidator object.
@@ -25,6 +26,7 @@ def __init__(
2526
allow_empty_local,
2627
allow_quoted_local,
2728
allow_domain_literal,
29+
deliverable_address,
2830
)
2931

3032
def validate_email(self, email: Union[str, bytes]) -> ValidatedEmail:
@@ -61,6 +63,7 @@ def validate_email(
6163
allow_empty_local: bool = False,
6264
allow_quoted_local: bool = False,
6365
allow_domain_literal: bool = False,
66+
deliverable_address: bool = True,
6467
) -> ValidatedEmail:
6568
"""
6669
Validates an email address with optional parameters.
@@ -85,5 +88,6 @@ def validate_email(
8588
allow_empty_local,
8689
allow_quoted_local,
8790
allow_domain_literal,
91+
deliverable_address,
8892
)
8993
return emv.validate_email(email)

testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# from email_validator import EmailSyntaxError, validate_email, ValidatedEmail
22
from emv import validate_email
33

4-
validate_email("\u0300@test")
4+
print(validate_email("[email protected]"))

0 commit comments

Comments
 (0)