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

ephraimanierobi pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit dfb13eed9c807d4432c3fd8dacfa4285d57d9d0f
Author: Josh Fell <48934154+josh-f...@users.noreply.github.com>
AuthorDate: Sat Apr 30 13:37:31 2022 -0400

    Add doc notes for keyword-only args for `expand()` and `partial()` (#23373)
    
    (cherry picked from commit d3028e1e9036a3c67ec4477eee6cd203c12f7f5c)
---
 docs/apache-airflow/concepts/dynamic-task-mapping.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/apache-airflow/concepts/dynamic-task-mapping.rst 
b/docs/apache-airflow/concepts/dynamic-task-mapping.rst
index e93ddfd106..65017b49cd 100644
--- a/docs/apache-airflow/concepts/dynamic-task-mapping.rst
+++ b/docs/apache-airflow/concepts/dynamic-task-mapping.rst
@@ -62,6 +62,8 @@ The grid view also provides visibility into your mapped tasks 
in the details pan
 
 .. image:: /img/mapping-simple-grid.png
 
+.. note:: Only keyword arguments are allowed to be passed to ``expand()``.
+
 .. note:: Values passed from the mapped task is a lazy proxy
 
     In the above example, ``values`` received by ``sum_it`` is an aggregation 
of all values returned by each mapped instance of ``add_one``. However, since 
it is impossible to know how many instances of ``add_one`` we will have in 
advance, ``values`` is not a normal list, but a "lazy sequence" that retrieves 
each individual value only when asked. Therefore, if you run ``print(values)`` 
directly, you would get something like this::
@@ -175,6 +177,8 @@ It is possible to use ``partial`` and ``expand`` with 
classic style operators as
         bash_command=["echo 1", "echo 2"]
     )
 
+.. note:: Only keyword arguments are allowed to be passed to ``partial()``.
+
 Mapping over result of classic operators
 ----------------------------------------
 

Reply via email to