This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new b2ecb6c9caa fix syntax error on chain exemple of dags.rst (#43079)
b2ecb6c9caa is described below

commit b2ecb6c9caacd2ca7a2c1519ca892b19b2bb35fb
Author: Arthur Braveheart <[email protected]>
AuthorDate: Sat Oct 26 19:20:50 2024 -0300

    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 <[email protected]>
    
    ---------
    
    Co-authored-by: Kaxil Naik <[email protected]>
---
 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 2b6fb0279b0..0b4261e80a7 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``!)::
 

Reply via email to