From b2ecb6c9caacd2ca7a2c1519ca892b19b2bb35fb Mon Sep 17 00:00:00 2001 From: Arthur Braveheart <153156237+arthbraveheart@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:20:50 -0300 Subject: [PATCH] fix syntax error on chain exemple of dags.rst (#43079) * fix sintax error on chain exemple of dags.rst On the line 128, contains an error that concatenates a string with a number. So, I just fixed transforming the number into a string. * Update docs/apache-airflow/core-concepts/dags.rst Co-authored-by: Kaxil Naik --------- Co-authored-by: Kaxil Naik --- docs/apache-airflow/core-concepts/dags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apache-airflow/core-concepts/dags.rst b/docs/apache-airflow/core-concepts/dags.rst index 2b6fb0279b0a..0b4261e80a71 100644 --- a/docs/apache-airflow/core-concepts/dags.rst +++ b/docs/apache-airflow/core-concepts/dags.rst @@ -125,7 +125,7 @@ And if you want to chain together dependencies, you can use ``chain``:: chain(op1, op2, op3, op4) # You can also do it dynamically - chain(*[EmptyOperator(task_id='op' + i) for i in range(1, 6)]) + chain(*[EmptyOperator(task_id=f"op{i}") for i in range(1, 6)]) Chain can also do *pairwise* dependencies for lists the same size (this is different from the *cross dependencies* created by ``cross_downstream``!)::