mirror of
https://github.com/creyD/email_valid.git
synced 2026-04-12 19:30:30 +02:00
Adjusted files for isort & autopep
This commit is contained in:
committed by
github-actions[bot]
parent
df22e6d0ae
commit
dd9436d912
@@ -35,10 +35,10 @@ def validate_mail(email: str) -> bool:
|
|||||||
dns_timeout=10,
|
dns_timeout=10,
|
||||||
check_smtp=True,
|
check_smtp=True,
|
||||||
smtp_timeout=10,
|
smtp_timeout=10,
|
||||||
|
|
||||||
)
|
)
|
||||||
return is_valid or False
|
return is_valid or False
|
||||||
|
|
||||||
|
|
||||||
@app.post("/validate_multiple_emails", operation_id="validate_multiple_emails")
|
@app.post("/validate_multiple_emails", operation_id="validate_multiple_emails")
|
||||||
def validate_multiple_emails(emails: list[str]) -> dict[str, bool]:
|
def validate_multiple_emails(emails: list[str]) -> dict[str, bool]:
|
||||||
"""
|
"""
|
||||||
@@ -54,7 +54,6 @@ def validate_multiple_emails(emails: list[str]) -> dict[str, bool]:
|
|||||||
dns_timeout=10,
|
dns_timeout=10,
|
||||||
check_smtp=True,
|
check_smtp=True,
|
||||||
smtp_timeout=10,
|
smtp_timeout=10,
|
||||||
|
|
||||||
)
|
)
|
||||||
results[email] = is_valid or False
|
results[email] = is_valid or False
|
||||||
return results
|
return results
|
||||||
|
|||||||
Reference in New Issue
Block a user