You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/19 23:55:13 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #22854: Render list items in rendered fields view

uranusjr commented on code in PR #22854:
URL: https://github.com/apache/airflow/pull/22854#discussion_r853611417


##########
airflow/operators/python.py:
##########
@@ -122,7 +122,7 @@ def my_python_callable(**kwargs):
     """
 
     template_fields: Sequence[str] = ('templates_dict', 'op_args', 'op_kwargs')
-    template_fields_renderers = {"templates_dict": "json", "op_args": "py", "op_kwargs": "py"}
+    template_fields_renderers = {"templates_dict": "json", "op_args": "json", "op_kwargs": "json"}

Review Comment:
   I think these need to be `py` as well



##########
airflow/providers/http/operators/http.py:
##########
@@ -61,7 +61,7 @@ class SimpleHttpOperator(BaseOperator):
         'data',
         'headers',
     )
-    template_fields_renderers = {'headers': 'json', 'data': 'py'}
+    template_fields_renderers = {'headers': 'json', 'data': 'json'}

Review Comment:
   Same



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org