You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/15 23:44:42 UTC

[GitHub] [airflow] hankehly commented on a diff in pull request #25657: Update code examples from "classic" operators to TaskFlow decorators (faq, best practices, index)

hankehly commented on code in PR #25657:
URL: https://github.com/apache/airflow/pull/25657#discussion_r946224940


##########
docs/apache-airflow/best-practices.rst:
##########
@@ -135,26 +135,21 @@ Bad example:
       catchup=False,
       tags=["example"],
   ) as dag:
-
+      @task()
       def print_array():

Review Comment:
   Thanks, I had a feeling someone might mention this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org