potiuk commented on code in PR #27264:
URL: https://github.com/apache/airflow/pull/27264#discussion_r1199597652
##########
airflow/providers/amazon/aws/hooks/dms.py:
##########
@@ -207,7 +207,7 @@ def wait_for_task_status(self, replication_task_arn: str,
status: DmsTaskWaiterS
raise TypeError("Status must be an instance of
DmsTaskWaiterStatus")
dms_client = self.get_conn()
- waiter = dms_client.get_waiter(f"replication_task_{status}")
+ waiter = dms_client.get_waiter(f"replication_task_{status.value}")
Review Comment:
This is an interesitng one - turns out that Python 3.11 changes default
`__str__` behaviour for Enums to return "EnumClass.ENUM" rather than the
".value". I expect this to be one of the biggest back-compatibility problem
with Python 3.11 for a lot of projects.
--
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]