diff --git a/airflow/providers/qubole/operators/qubole.py b/airflow/providers/qubole/operators/qubole.py index 1b2d02f4008e0..86f34fa0cc2d2 100644 --- a/airflow/providers/qubole/operators/qubole.py +++ b/airflow/providers/qubole/operators/qubole.py @@ -18,7 +18,7 @@ """Qubole operator""" import re from datetime import datetime -from typing import TYPE_CHECKING, Iterable, Optional, Sequence +from typing import TYPE_CHECKING, Optional, Sequence from airflow.hooks.base import BaseHook from airflow.models import BaseOperator, BaseOperatorLink @@ -217,7 +217,7 @@ class QuboleOperator(BaseOperator): 'cluster_label', ) - template_ext: Iterable[str] = ('.txt',) + template_ext: Sequence[str] = ('.txt',) ui_color = '#3064A1' ui_fgcolor = '#fff' qubole_hook_allowed_args_list = ['command_type', 'qubole_conn_id', 'fetch_logs'] diff --git a/airflow/providers/qubole/operators/qubole_check.py b/airflow/providers/qubole/operators/qubole_check.py index e0c2de3285330..a112f400d41e1 100644 --- a/airflow/providers/qubole/operators/qubole_check.py +++ b/airflow/providers/qubole/operators/qubole_check.py @@ -168,7 +168,7 @@ class QuboleValueCheckOperator(_QuboleCheckOperatorMixin, SQLValueCheckOperator, QuboleOperator and SQLValueCheckOperator are template-supported. """ - template_fields = set(QuboleOperator.template_fields) | set(SQLValueCheckOperator.template_fields) + template_fields = tuple(set(QuboleOperator.template_fields) | set(SQLValueCheckOperator.template_fields)) template_ext = QuboleOperator.template_ext ui_fgcolor = '#000'