This is an automated email from the ASF dual-hosted git repository. ash pushed a commit to branch v2-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit c50cb0165825b55976ae89d949240868dbacebe6 Author: Andrew Godwin <[email protected]> AuthorDate: Tue Mar 30 13:53:07 2021 -0600 Fixed deprecated code example in Concepts doc (#15098) This document used the now-deprecated import for "task"; this updates it to come from `airflow.decorators` so it won't raise a DeprecationWarning if copied and used. (cherry picked from commit 1521b9665762e3457b24cef18a080aa1ee7402ef) --- docs/apache-airflow/concepts.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/apache-airflow/concepts.rst b/docs/apache-airflow/concepts.rst index 6b5b2c3..2637b78 100644 --- a/docs/apache-airflow/concepts.rst +++ b/docs/apache-airflow/concepts.rst @@ -366,7 +366,8 @@ using ``@task`` decorator. .. code-block:: python - from airflow.operators.python import task, get_current_context + from airflow.decorators import task + from airflow.operators.python import get_current_context @task def my_task():
