mik-laj commented on a change in pull request #9887:
URL: https://github.com/apache/airflow/pull/9887#discussion_r460445046
##########
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:
You need to add runtime-checks for type: See:
https://github.com/apache/airflow/pull/9733
```python
if not self.cli:
raise Exception("The 'cli' should be initialized before!")
```
----------------------------------------------------------------
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]