Skip to content

Commit 1aebf55

Browse files
committed
quick push
1 parent 0daccea commit 1aebf55

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

emv/validator.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,19 @@ def validate_email(
6969
Validates an email address with optional parameters.
7070
7171
Args:
72-
email: The email address to validate.
73-
allow_smtputf8: Whether to allow SMTPUTF8.
74-
allow_empty_local: Whether to allow empty local part.
75-
allow_quoted_local: Whether to allow quoted local part.
76-
allow_domain_literal: Whether to allow domain literals.
77-
deliverable_address: Whether to check if the email address is deliverable.
72+
email (Union[str, bytes]): The email address to validate.
73+
allow_smtputf8 (bool): Whether to allow SMTPUTF8. Default is True.
74+
allow_empty_local (bool): Whether to allow empty local part. \
75+
Default is False.
76+
allow_quoted_local (bool): Whether to allow quoted local part. \
77+
Default is False.
78+
allow_domain_literal (bool): Whether to allow domain literals. \
79+
Default is False.
80+
deliverable_address (bool): Whether to check if the email address is \
81+
deliverable. Default is True.
7882
7983
Returns:
80-
A ValidatedEmail instance if the email is valid.
84+
ValidatedEmail: An instance if the email is valid.
8185
8286
Raises:
8387
SyntaxError: If the email syntax is invalid.

0 commit comments

Comments
 (0)