diff --git a/airflow/operators/python.py b/airflow/operators/python.py index 538e805cce799..133779f088b9f 100644 --- a/airflow/operators/python.py +++ b/airflow/operators/python.py @@ -621,7 +621,7 @@ class ExternalPythonOperator(_BasePythonVirtualenvOperator): macros when starting. """ - template_fields: Sequence[str] = tuple({'python_path'} | set(PythonOperator.template_fields)) + template_fields: Sequence[str] = tuple({'python'} | set(PythonOperator.template_fields)) def __init__( self,