KennyRich commented on a change in pull request #20418:
URL: https://github.com/apache/airflow/pull/20418#discussion_r772146900
##########
File path: airflow/contrib/hooks/aws_sqs_hook.py
##########
@@ -20,7 +20,7 @@
import warnings
-from airflow.providers.amazon.aws.hooks.sqs import SQSHook # noqa
+from airflow.providers.amazon.aws.hooks.sqs import SqsHook # noqa
Review comment:
Thanks. I understand that some of the changes aren't backward compatible
but, this file has a deprecation warning here already. Do I just revert the
changes here and create a deprecation warning for the `SQSHook` and make it
backward compatible like this
```
class SQSHook(SqsHook):
"""
This hook is deprecated.
Please use :class:`airflow.providers.amazon.aws.hooks.sqs.SqsHook`.
"""
def __init__(self, *args, **kwargs):
warnings.warn(
"This hook is deprecated. " "Please use
:class:`airflow.providers.amazon.aws.hooks.sqs.SqsHook`.",
DeprecationWarning,
stacklevel=2,
)
super().__init__(*args, **kwargs)
```
--
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]