Skip to content

Commit

Permalink
Remove decorator from rendering fields example (#38827)
Browse files Browse the repository at this point in the history
* Remove decorator from rendering fields example

* fix

(cherry picked from commit 285f037)
  • Loading branch information
eladkal authored and jedcunningham committed Apr 26, 2024
1 parent 6d36c80 commit a0249d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/core-concepts/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ you can pass ``render_template_as_native_obj=True`` to the DAG as follows:
return json.loads(data_string)
@task(task_id="transform")
def transform(order_data):
print(type(order_data))
total_order_value = 0
for value in order_data.values():
total_order_value += value
return {"total_order_value": total_order_value}
Expand Down

0 comments on commit a0249d4

Please sign in to comment.