darwinyip commented on a change in pull request #9887:
URL: https://github.com/apache/airflow/pull/9887#discussion_r458506313



##########
File path: airflow/providers/imap/hooks/imap.py
##########
@@ -41,7 +42,7 @@ class ImapHook(BaseHook):
     :type imap_conn_id: str
     """
 
-    def __init__(self, imap_conn_id='imap_default'):
+    def __init__(self, imap_conn_id: str = 'imap_default') -> None:
         super().__init__()
         self.imap_conn_id = imap_conn_id
         self.mail_client = None

Review comment:
       This still gives the same mypy errors.




----------------------------------------------------------------
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.

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


Reply via email to