ferruzzi commented on code in PR #63035:
URL: https://github.com/apache/airflow/pull/63035#discussion_r2955778709
##########
providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py:
##########
@@ -66,5 +67,11 @@ class AllLambdaConfigKeys(InvokeLambdaKwargsConfigKeys):
END_WAIT_TIMEOUT = "end_wait_timeout"
-CommandType = Sequence[str]
+if AIRFLOW_V_3_2_PLUS:
+ from airflow.executors.workloads import ExecuteCallback, ExecuteTask
+
+ CommandType: TypeAlias = Sequence[str] | Sequence[ExecuteTask |
ExecuteCallback]
Review Comment:
Sorry, I just meant that we may want a new TypeAlias for that particular
combo if we end up using it more. so this would end up being `CommandType:
TypeAlias = Sequence[str | ExecutorWorkload]` or something like that, that's
all.
--
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]