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


##########
airflow/decorators/python.py:
##########
@@ -55,6 +55,10 @@ def __init__(self, *, python_callable, op_args, op_kwargs, 
**kwargs) -> None:
             **kwargs,
         )
 
+    @property
+    def get_operator_ui_name(self):
+        return 'PythonOperator'

Review Comment:
   I’m thinking maybe we should let this return `@task.python`; does that look 
better in the UI?



##########
airflow/decorators/python.py:
##########
@@ -55,6 +55,10 @@ def __init__(self, *, python_callable, op_args, op_kwargs, 
**kwargs) -> None:
             **kwargs,
         )
 
+    @property
+    def get_operator_ui_name(self):
+        return 'PythonOperator'

Review Comment:
   I’m thinking maybe we should let this return `"@task.python"`; does that 
look better in the UI?



-- 
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