hankehly commented on code in PR #25845:
URL: https://github.com/apache/airflow/pull/25845#discussion_r950795366


##########
docs/apache-airflow/howto/operator/python.rst:
##########
@@ -22,8 +22,11 @@
 PythonOperator
 ==============
 
-Use the :class:`~airflow.operators.python.PythonOperator` to execute
-Python callables.
+Use the ``@task`` decorator to execute Python callables.
+
+.. warning::
+    Previous versions of Airflow required using 
:class:`~airflow.operators.python.PythonOperator`
+    to execute Python callables. The ``@task`` decorater is now the 
recommended method.

Review Comment:
   Thanks. Please see 
[`fc66a4e`](https://github.com/apache/airflow/pull/25845/commits/fc66a4efb5d418e0aaee583406aa1fe9b3421621)



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