Skip to content

Commit

Permalink
Remove 'as dag' now that it's unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
BasPH committed Nov 17, 2022
1 parent 85f4616 commit 443d6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Take a look at the following snippet of code:
from airflow.operators.python import PythonOperator
# 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:
with DAG(dag_id="demo", start_date=datetime(2022, 1, 1), schedule="0 0 * * *"):
# Tasks are represented as operators
hello = BashOperator(task_id="hello", bash_command="echo hello")
Expand Down

0 comments on commit 443d6de

Please sign in to comment.