xBis7 commented on code in PR #71316:
URL: https://github.com/apache/airflow/pull/71316#discussion_r3841978947
##########
airflow-core/docs/index.rst:
##########
@@ -60,16 +60,21 @@ Let's look at a code snippet that defines a simple Dag:
from airflow.providers.standard.operators.bash import BashOperator
# A Dag represents a workflow, a collection of tasks
- with DAG(dag_id="demo", start_date=datetime(2022, 1, 1), schedule="0 0 * *
*") as dag:
- # Tasks are represented as operators
+ with DAG(dag_id="demo", start_date=datetime(2022, 1, 1), schedule="0 0 * *
*"):
+ # Tasks are defined by instantiating operators
Review Comment:
```suggestion
# Tasks can be defined by instantiating operators
```
And then below add another comment above one of the `@task`, that they can
also be defined using a decorator.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]