Taragolis commented on code in PR #29761:
URL: https://github.com/apache/airflow/pull/29761#discussion_r1117918321
##########
airflow/providers/amazon/aws/hooks/ecs.py:
##########
@@ -55,7 +55,7 @@ def should_retry_eni(exception: Exception):
return False
-class EcsClusterStates(Enum):
+class EcsClusterStates(str, Enum):
Review Comment:
This for allow comparison `EcsClusterStates.ACTIVE == "ACTIVE"` unfortunetly
class enum.StrEnum[ΒΆ](https://docs.python.org/3/library/enum.html#enum.StrEnum)
available only in python 3.11
--
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]