More precise return type

This commit is contained in:
László Károlyi 2019-03-25 12:43:30 +01:00
parent 0395927d6c
commit fd83fdc238
Signed by untrusted user: karolyi
GPG Key ID: 2DCAF25E55735BFE
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def _get_mx_records(domain: str) -> list:
def _check_mx_records(
mx_records: list, smtp_timeout: int, helo_host: str, from_address: str,
email_address: str
) -> bool:
) -> Optional[bool]:
'Check the mx records for a given email address.'
smtp = SMTP(timeout=smtp_timeout)
smtp.set_debuglevel(debuglevel=0)