jlaportebot commented on PR #66490:
URL: https://github.com/apache/airflow/pull/66490#issuecomment-4477083648

   Updated the fix to address the MyPy providers failure. The issue was that 
`_smtp_client` has a union type `smtplib.SMTP_SSL | smtplib.SMTP | 
aiosmtplib.SMTP | None`, so `status[0]` wasn't indexable on the union type. 
Added an `isinstance(smtp_client, (smtplib.SMTP, smtplib.SMTP_SSL))` check to 
narrow the type for mypy, and changed `status == 250` to `status[0] == 250` 
since `smtplib.noop()` returns `tuple[int, bytes]`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to