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/01/08 03:17:27 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #20732: Standardize AWS SQS classes names

uranusjr commented on a change in pull request #20732:
URL: https://github.com/apache/airflow/pull/20732#discussion_r780625140



##########
File path: airflow/providers/amazon/aws/operators/sqs.py
##########
@@ -89,3 +90,19 @@ def execute(self, context: 'Context'):
         self.log.info('result is send_message is %s', result)
 
         return result
+
+
+class SQSPublishOperator(SqsPublishOperator):
+    """
+    This operator is deprecated.
+    Please use :class:`airflow.providers.amazon.aws.operators.sqs.SqsPublishOperator`.
+    """
+
+    def __init__(self, *args, **kwargs):
+        warnings.warn(
+            "This operator is deprecated. "
+            "Please use :class:`airflow.providers.amazon.aws.operators.sqs.SqsPublishOperator`.",

Review comment:
       ```suggestion
               "Please use `airflow.providers.amazon.aws.operators.sqs.SqsPublishOperator`.",
   ```
   
   Deprecation warnings are not rst-rendered




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