uranusjr commented on code in PR #34222:
URL: https://github.com/apache/airflow/pull/34222#discussion_r1322282701
##########
airflow/providers/amazon/aws/triggers/rds.py:
##########
@@ -99,13 +99,14 @@ async def run(self):
yield TriggerEvent({"status": "success", "response": self.response})
-_waiter_arg = {
- RdsDbType.INSTANCE: "DBInstanceIdentifier",
- RdsDbType.CLUSTER: "DBClusterIdentifier",
+# using Any for the keys to "disable" type checks because Union types.
Review Comment:
That’s what I meant, since you use `.value`, isn’t this dict just `dict[str,
str]`? Mypy should be smart enough to infer this automatically without the
`Any`.
##########
airflow/providers/amazon/aws/triggers/rds.py:
##########
@@ -99,13 +99,14 @@ async def run(self):
yield TriggerEvent({"status": "success", "response": self.response})
-_waiter_arg = {
- RdsDbType.INSTANCE: "DBInstanceIdentifier",
- RdsDbType.CLUSTER: "DBClusterIdentifier",
+# using Any for the keys to "disable" type checks because Union types.
Review Comment:
That’s what I meant, since you use `.value`, isn’t this dict just `dict[str,
str]`? Mypy should be smart enough to infer this automatically without the
`Any`.
--
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]