Move no_smtp argumeent to the end of arguments list

This commit is contained in:
Sergey Shevchenko 2021-02-11 17:48:41 +04:00
parent fea879a809
commit 607ae44ce8
No known key found for this signature in database
GPG Key ID: 356B0EBCAA35DFF7
1 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ LOGGER = getLogger(name=__name__)
def validate_email_or_fail(
email_address: str, check_regex: bool = True, check_mx: bool = True,
no_smtp: bool = False, from_address: Optional[str] = None,
helo_host: Optional[str] = None, smtp_timeout: int = 10,
dns_timeout: int = 10, use_blacklist: bool = True, debug: bool = False
from_address: Optional[str] = None, helo_host: Optional[str] = None,
smtp_timeout: int = 10, dns_timeout: int = 10,
use_blacklist: bool = True, debug: bool = False, no_smtp: bool = False,
) -> Optional[bool]:
"""
Return `True` if the email address validation is successful, `None` if the