You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/03/31 13:49:29 UTC

[airflow] branch master updated: Fix deprecated import of `@task` in example DAG (#15111)

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

ash pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 2578657  Fix deprecated import of `@task` in example DAG (#15111)
2578657 is described below

commit 2578657adeec4403467984a828d4d853d89fe9a3
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Wed Mar 31 14:49:13 2021 +0100

    Fix deprecated import of `@task` in example DAG (#15111)
---
 airflow/example_dags/example_xcomargs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/airflow/example_dags/example_xcomargs.py b/airflow/example_dags/example_xcomargs.py
index 7ec89a7..0fb728e 100644
--- a/airflow/example_dags/example_xcomargs.py
+++ b/airflow/example_dags/example_xcomargs.py
@@ -20,8 +20,9 @@
 import logging
 
 from airflow import DAG
+from airflow.decorators import task
 from airflow.operators.bash import BashOperator
-from airflow.operators.python import PythonOperator, get_current_context, task
+from airflow.operators.python import PythonOperator, get_current_context
 from airflow.utils.dates import days_ago
 
 log = logging.getLogger(__name__)