ashb commented on a change in pull request #21326:
URL: https://github.com/apache/airflow/pull/21326#discussion_r799639210
##########
File path: airflow/providers/ssh/operators/ssh.py
##########
@@ -18,15 +18,16 @@
import warnings
from base64 import b64encode
-from select import select
-from typing import Optional, Sequence, Tuple, Union
-
-from paramiko.client import SSHClient
+from typing import TYPE_CHECKING, Optional, Sequence, Union
from airflow.configuration import conf
from airflow.exceptions import AirflowException
from airflow.models import BaseOperator
-from airflow.providers.ssh.hooks.ssh import SSHHook
+
+if TYPE_CHECKING:
+ from paramiko.client import SSHClient
+
+ from airflow.providers.ssh.hooks.ssh import SSHHook
Review comment:
Not strictly required, it just means DAG parsing has to import less.
--
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]