Skip to content

Commit

Permalink
Add some historical information
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko authored and Kamil Breguła committed Sep 13, 2019
1 parent e3f96f7 commit 91dc3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/operators/python_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ class PythonOperator(BaseOperator):
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:PythonOperator`
:param python_callable: A reference to an object that is callable
The signature of the callable passed to the PythonOperator
is inferred and argument values are always automatically provided.
:type python_callable: python callable
:param op_kwargs: a dictionary of keyword arguments that will get unpacked
in your function
Expand Down
4 changes: 4 additions & 0 deletions docs/howto/operator/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ as an argument of the provided callable, the value will be automatically injecte
:start-after: [START howto_operator_python_kwargs]
:end-before: [END howto_operator_python_kwargs]

Previously you would set the `provide_context=True` explicitly if you wanted to inject context
into the function. This has been deprecated since Airflow 2.0 and this is now automatically
inferred from the signature of the function.

Templating
^^^^^^^^^^

Expand Down

0 comments on commit 91dc3d1

Please sign in to comment.