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/10/29 22:40:05 UTC

(airflow) 13/44: Fixes python_callable function assignment context kwargs example in params.rst (#34759)

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

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

commit 5433a77e25d2957d078ff49152900d7f309c37f7
Author: Filippo Alimonda <fi...@gmail.com>
AuthorDate: Mon Oct 9 04:26:53 2023 -0600

    Fixes python_callable function assignment context kwargs example in params.rst (#34759)
    
    * Update params.rst
    ---------
    
    Co-authored-by: Falimonda <fi...@model-prime.com>
    (cherry picked from commit 153fd11f3f360ed1f42c4ac9f1fe08ecf5105f00)
---
 docs/apache-airflow/core-concepts/params.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/apache-airflow/core-concepts/params.rst b/docs/apache-airflow/core-concepts/params.rst
index e5bf04ae62..42fd523688 100644
--- a/docs/apache-airflow/core-concepts/params.rst
+++ b/docs/apache-airflow/core-concepts/params.rst
@@ -120,12 +120,13 @@ Another way to access your param is via a task's ``context`` kwarg.
 .. code-block::
    :emphasize-lines: 1,2
 
-    def print_x(**context):
+    def print_my_int_param(**context):
         print(context["params"]["my_int_param"])
 
     PythonOperator(
         task_id="print_my_int_param",
         python_callable=print_my_int_param,
+        params={"my_int_param": 12345},
     )
 
 JSON Schema Validation