You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ra...@apache.org on 2026/03/05 16:53:22 UTC

(airflow) 01/01: fix mypy

This is an automated email from the ASF dual-hosted git repository.

rahulvats pushed a commit to branch fix-mypy-elasticprovider
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit de1d5c8e27c95dbd4476108bd8a861902c4583ae
Author: vatsrahul1001 <ra...@gmail.com>
AuthorDate: Thu Mar 5 22:22:52 2026 +0530

    fix mypy
---
 airflow-core/src/airflow/config_templates/airflow_local_settings.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/config_templates/airflow_local_settings.py b/airflow-core/src/airflow/config_templates/airflow_local_settings.py
index 192c9cec526..3a547aa58ee 100644
--- a/airflow-core/src/airflow/config_templates/airflow_local_settings.py
+++ b/airflow-core/src/airflow/config_templates/airflow_local_settings.py
@@ -282,7 +282,9 @@ if REMOTE_LOGGING:
         )
         remote_task_handler_kwargs = {}
     elif ELASTICSEARCH_HOST:
-        from airflow.providers.elasticsearch.log.es_task_handler import ElasticsearchRemoteLogIO
+        from airflow.providers.elasticsearch.log.es_task_handler import (
+            ElasticsearchRemoteLogIO,  # type: ignore[attr-defined]
+        )
 
         ELASTICSEARCH_WRITE_STDOUT: bool = conf.getboolean("elasticsearch", "WRITE_STDOUT")
         ELASTICSEARCH_WRITE_TO_ES: bool = conf.getboolean("elasticsearch", "WRITE_TO_ES")