From 13ab9f2fb512479b38d007c0d411b3a6acda7d92 Mon Sep 17 00:00:00 2001 From: bnkc Date: Wed, 31 Jul 2024 23:10:04 -0600 Subject: [PATCH] quick push --- emv/validator.py | 4 ++++ testing.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/emv/validator.py b/emv/validator.py index 629b486..e92de6a 100644 --- a/emv/validator.py +++ b/emv/validator.py @@ -10,6 +10,7 @@ def __init__( allow_empty_local: bool = False, allow_quoted_local: bool = False, allow_domain_literal: bool = False, + deliverable_address: bool = True, ): """ Initializes an EmailValidator object. @@ -25,6 +26,7 @@ def __init__( allow_empty_local, allow_quoted_local, allow_domain_literal, + deliverable_address, ) def validate_email(self, email: Union[str, bytes]) -> ValidatedEmail: @@ -61,6 +63,7 @@ def validate_email( allow_empty_local: bool = False, allow_quoted_local: bool = False, allow_domain_literal: bool = False, + deliverable_address: bool = True, ) -> ValidatedEmail: """ Validates an email address with optional parameters. @@ -85,5 +88,6 @@ def validate_email( allow_empty_local, allow_quoted_local, allow_domain_literal, + deliverable_address, ) return emv.validate_email(email) diff --git a/testing.py b/testing.py index 49dfbf3..f252fba 100644 --- a/testing.py +++ b/testing.py @@ -1,4 +1,4 @@ # from email_validator import EmailSyntaxError, validate_email, ValidatedEmail from emv import validate_email -validate_email("\u0300@test") +print(validate_email("levostatnigrosh@gmail.com"))