SameerMesiah97 commented on code in PR #63035:
URL: https://github.com/apache/airflow/pull/63035#discussion_r2955723250


##########
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:
   I tried `Sequence[ExecuteTask | ExecuteCallback]` before (and just right 
now) but this was/is causing typing errors in `execute_async` as the argument 
for command is of type `Sequence[str]` in the legacy path. 



-- 
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]

Reply via email to