messense commented on PR #58189: URL: https://github.com/apache/airflow/pull/58189#issuecomment-3516004205
The mypy error is confusing? The typeshed for `noop()` is `tuple[int, bytes]` https://github.com/python/typeshed/blob/017aed4dceade7e7dc9880b5182a516e01e135f6/stdlib/smtplib.pyi#L30 while mypy gives: ``` providers/smtp/src/airflow/providers/smtp/hooks/smtp.py:279: error: "Coroutine[Any, Any, SMTPResponse]" object is not iterable [misc] status, _message = smtp_client.noop() ^~~~~~~~~~~~~~~~~~ Found 1 error in 1 file (checked 4026 source files) ``` -- 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]
