You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by js...@apache.org on 2025/07/12 20:35:08 UTC
(airflow) branch main updated: Cleanup type ignores in ssh provider where possible (#53257)
This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 59fbd87161c Cleanup type ignores in ssh provider where possible (#53257)
59fbd87161c is described below
commit 59fbd87161c23979ccf31509ac05917077b3a073
Author: Jens Scheffler <95...@users.noreply.github.com>
AuthorDate: Sat Jul 12 22:35:02 2025 +0200
Cleanup type ignores in ssh provider where possible (#53257)
---
providers/ssh/src/airflow/providers/ssh/operators/ssh.py | 2 +-
providers/ssh/src/airflow/providers/ssh/version_compat.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/providers/ssh/src/airflow/providers/ssh/operators/ssh.py b/providers/ssh/src/airflow/providers/ssh/operators/ssh.py
index 8f22a864071..1b07b741684 100644
--- a/providers/ssh/src/airflow/providers/ssh/operators/ssh.py
+++ b/providers/ssh/src/airflow/providers/ssh/operators/ssh.py
@@ -180,7 +180,7 @@ class SSHOperator(BaseOperator):
def tunnel(self) -> None:
"""Get ssh tunnel."""
- ssh_client = self.hook.get_conn() # type: ignore[union-attr]
+ ssh_client = self.hook.get_conn()
ssh_client.get_transport()
def on_kill(self) -> None:
diff --git a/providers/ssh/src/airflow/providers/ssh/version_compat.py b/providers/ssh/src/airflow/providers/ssh/version_compat.py
index f800a29bbb7..c2a90c12ccc 100644
--- a/providers/ssh/src/airflow/providers/ssh/version_compat.py
+++ b/providers/ssh/src/airflow/providers/ssh/version_compat.py
@@ -43,6 +43,6 @@ else:
if AIRFLOW_V_3_0_PLUS:
from airflow.sdk import BaseOperator
else:
- from airflow.models import BaseOperator # type: ignore[no-redef]
+ from airflow.models import BaseOperator
__all__ = ["AIRFLOW_V_3_0_PLUS", "AIRFLOW_V_3_1_PLUS", "BaseHook", "BaseOperator"]