You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/01/11 21:25:57 UTC
[airflow] 16/27: Update baseoperator.py (#28574)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit b525d437577e8a22f031d8859a5dd6e68a6c9140
Author: abouklila <sh...@gmail.com>
AuthorDate: Thu Dec 29 20:30:43 2022 +0100
Update baseoperator.py (#28574)
Fix baseoperator chain docstring
(cherry picked from commit 9fefbad54fe50b4ddb9d4eaba46ed051ef7960b3)
---
airflow/models/baseoperator.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow/models/baseoperator.py b/airflow/models/baseoperator.py
index bb9b94b52f..ff400804a4 100644
--- a/airflow/models/baseoperator.py
+++ b/airflow/models/baseoperator.py
@@ -1563,12 +1563,12 @@ def chain(*tasks: DependencyMixin | Sequence[DependencyMixin]) -> None:
.. code-block:: python
- chain(t1, [Label("branch one"), Label("branch two")], [x1(), x2()], task_group1, t2())
+ chain(t1, [Label("branch one"), Label("branch two")], [x1(), x2()], task_group1, x3())
is equivalent to::
/ "branch one" -> x1 \
- t1 -> t2 -> x3
+ t1 -> task_group1 -> x3
\ "branch two" -> x2 /
.. code-block:: python