File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,19 @@ def validate_email(
69
69
Validates an email address with optional parameters.
70
70
71
71
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.
78
82
79
83
Returns:
80
- A ValidatedEmail instance if the email is valid.
84
+ ValidatedEmail: An instance if the email is valid.
81
85
82
86
Raises:
83
87
SyntaxError: If the email syntax is invalid.
You can’t perform that action at this time.
0 commit comments