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


##########
airflow/decorators/python.py:
##########
@@ -35,7 +35,7 @@ class _PythonDecoratedOperator(DecoratedOperator, 
PythonOperator):
     """
 
     template_fields: Sequence[str] = ('op_args', 'op_kwargs')
-    template_fields_renderers = {"op_args": "py", "op_kwargs": "py"}
+    template_fields_renderers = {"op_args": "json", "op_kwargs": "json"}

Review Comment:
   Hi @ashb you're right it's quite counter-intuitive, I think this is done 
because args/kwargs are essentially a list/dict.
   Here's what it looks like in the UI (based on 
[avkirilishin](https://github.com/avkirilishin) answer)
   
   **Before** 
![](https://user-images.githubusercontent.com/54231417/151705503-63edd4cb-9b82-4466-a201-e07d5eb37008.png)
   
   **After** 
![](https://user-images.githubusercontent.com/54231417/151705515-696bf584-5baf-4dcb-b714-87cb7c730793.png)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to